HHH-14227 Insert statements are not ordered with entities that use inheritance and reference a subclass

This commit is contained in:
Nathan Xu 2020-10-05 10:57:58 +01:00 committed by Sanne Grinovero
parent 5eedda9a46
commit de6736ba32
1 changed files with 3 additions and 1 deletions

View File

@ -1268,7 +1268,9 @@ public class ActionQueue {
for ( int i = 0; i < propertyValues.length; i++ ) {
Object value = propertyValues[i];
Type type = propertyTypes[i];
addParentChildEntityNameByPropertyAndValue( action, batchIdentifier, type, value );
if ( value != null ) {
addParentChildEntityNameByPropertyAndValue( action, batchIdentifier, type, value );
}
}
if ( identifierType.isComponentType() ) {