Tassilo Karge (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5f50ce4...
) *commented* on HHH-16512 (
https://hibernate.atlassian.net/browse/HHH-16512?atlOrigin=eyJpIjoiMjFhNj...
)
Re: Bidirectional OneToOne association produces wrong isNull predicate in criteria query (
https://hibernate.atlassian.net/browse/HHH-16512?atlOrigin=eyJpIjoiMjFhNj...
)
The query should pick the correct implicit join for the nullability semantics of the
relation, which is a left join. In contrast, Hibernate 5.8 does not even query the
relation as it omits the join, and check whether the primary key of the table is null, and
Hibernate 6.2 performs an inner join which can never result in the null predicate becoming
true.
(
https://hibernate.atlassian.net/browse/HHH-16512#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16512#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:f83bc8f )