Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16266 (
https://hibernate.atlassian.net/browse/HHH-16266?atlOrigin=eyJpIjoiY2JhOW...
)
Re: Error when using @Query with EmbeddedId after upgrading to Spring Boot 3.0.4 (
https://hibernate.atlassian.net/browse/HHH-16266?atlOrigin=eyJpIjoiY2JhOW...
)
I think if there is a alias used in the top query and no alias used in the
sub query, then the auto interpretation should be that the id attribute if
used as such (id.queryId) should belong to the subquery right?
Well, it’s a 50:50 thing. Some people are going to argue for one or the other
interpretation. We chose the sensible way, which is to throw an error if there is an
ambiguity.
It wasn’t really defined what Hibernate 5 did in this case, so maybe it was doing the
wrong thing for you all along! Be happy that you can now disambiguate this matter by
introducing aliases like you should have done in the first place.
(
https://hibernate.atlassian.net/browse/HHH-16266#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16266#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#100219- sha1:eb3f1fe )