-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Caused by: org.hibernate.query.SemanticException: Cannot compare left expression of type 'java.io.Serializable' with right expression of type 'java.lang.Long' #3235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is a Hibernate issue caused by your configuration setup. Hibernate sees only the This issue can be easily reproduced with:
Please file a bug report at Hibernate. Note that passing on the actual value works:
|
We get this same issue for all repository interfaces where there are generics involved. E.g.
where I hope Hibernate fixes this soon. |
Hi @mp911de ! I'm in the middle of upgrading to SpringBoot 3.2.2 and I'm still suffering from the very similar issue (just quite simple HQL query with JOIN statement):
I see that I'm not alone with this problem - as there is an open ticket to Hibernate ORM (https://hibernate.atlassian.net/browse/HHH-17595). And seems like there is some integration issue with Spring Data as this issue cannot be reproduced just with bare Hibernate 6.4.1. |
I am facing the same error. |
I am trying to update spring from 2.7.3 to 3.2.3 and I am facing the same issue |
For my case I went back to hibernate 6.2 versions. |
Alguma novidade sobre ? |
|
Use this example to reproduce:
issues-3235.zip
The text was updated successfully, but these errors were encountered: