HHH-13410 Option "order_inserts = true" causes FK Violation when inserting with a Unidirectional Relations between 4 Entities

This commit is contained in:
gajendra.jatav 2020-07-18 16:03:04 +05:30 committed by Sanne Grinovero
parent 61ed4bf88d
commit faf3928043
1 changed files with 2 additions and 0 deletions

View File

@ -1189,9 +1189,11 @@ public class ActionQueue {
if ( nextBatchIdentifier.hasAnyParentEntityNames( batchIdentifier ) ) {
nextBatchIdentifier.parent = batchIdentifier;
nextBatchIdentifier.getParentEntityNames().add( batchIdentifier.getEntityName() );
}
if ( batchIdentifier.hasAnyChildEntityNames( nextBatchIdentifier ) ) {
nextBatchIdentifier.parent = batchIdentifier;
nextBatchIdentifier.getParentEntityNames().add( batchIdentifier.getEntityName() );
}
}
}