Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16674 (
https://hibernate.atlassian.net/browse/HHH-16674?atlOrigin=eyJpIjoiMDdiZT...
)
Re: Query Path comparison not working for primary keys (
https://hibernate.atlassian.net/browse/HHH-16674?atlOrigin=eyJpIjoiMDdiZT...
)
The reasoning behind this change is just common sense. You can’t compare an entity
expression with e.g. an integer because these types are simply not comparable.
In Java, you also can’t write entity == 1 , because how would Java do the comparison? We
just apply the same strictness in HQL/Criteria.
As unfortunate as this may sound, but you’ll simply have to fix your code.
(
https://hibernate.atlassian.net/browse/HHH-16674#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16674#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- sha1:bbd69a1 )