Panagiwths Mpougioukos (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=63ddac9...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZGE1YmM3ZmYw...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16135?atlOrigin=eyJpIjoiZGE1Ym...
) HHH-16135 (
https://hibernate.atlassian.net/browse/HHH-16135?atlOrigin=eyJpIjoiZGE1Ym...
) When owning side of @OneToOne is declared with fetchType.EAGER and not owning side of
@OneToOne is declared with fetchType.Lazy the ORM fails to load the mapped entity (
https://hibernate.atlassian.net/browse/HHH-16135?atlOrigin=eyJpIjoiZGE1Ym...
)
Change By: Panagiwths Mpougioukos (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=63ddac9...
)
[
https://github.com/de313e/SpringEagerLoadingIssue|https://github.com/de31...]
The above contains the test case to verify the bug
Possible workaround of issue
[
https://github.com/de313e/SpringEagerLoadingIssue/pull/2|https://github.c...]
Happens only when the *not owning side* has more than 1 fields mapped with {{@OneToOne}}
which are declared as {{LAZY}} but from the owner side they are declared as {{EAGER}}.
In this example the not owning entity of {{User}} has 2 fields mapped with {{@OneToOne}},
namely {{UserSettings}} and {{UserTermsOfUse}} which are declared as {{LAZY}}.
The owning sides of relationship which are {{UserSettings}} and {{UserTermsOfUse}} have a
{{EAGER}} relationship with the {{User}} entity.
(
https://hibernate.atlassian.net/browse/HHH-16135#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16135#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#100214- sha1:6115380 )