| 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 Closed ) is not present is not an option either as we need Java11 support. |