Armand Sciberras (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-13836 (
https://hibernate.atlassian.net/browse/HHH-13836?atlOrigin=eyJpIjoiYjM3Zm...
)
Re: OneToOne Unidirectional relation does not work properly (
https://hibernate.atlassian.net/browse/HHH-13836?atlOrigin=eyJpIjoiYjM3Zm...
)
Any updates on this please?
We also bumped into this same situation. Upon persisting, the ChildEntity}}is attempted
insert before{{ParentEntity}}causing the foreign key defined in {{ChildEntity}}to fail.
The only way we managed to go around it, is by converting from Unidirectional to
Bidirectional (which we would like to avoid if possible). This worked because hibernate
now picks up mappedBy in{{ParentEntity}}and {{foreignKeyDirection}}is now {{TO_PARENT
Sadly, stopping at 5.3.10 is not an option for us as we were effected by:
https://hibernate.atlassian.net/browse/HHH-12436 Also going to 5.2.10 where ( HHH-12436 (
https://hibernate.atlassian.net/browse/HHH-12436 ) Closed ) is not present is not an
option either as we need Java11 support.
(
https://hibernate.atlassian.net/browse/HHH-13836#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-13836#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#100128- sha1:03ebdb2 )