HHH-17387 Never skip entity initializers inside composite ids
This commit is contained in:
parent
8f81349400
commit
ee43bb51b9
|
@ -420,7 +420,10 @@ public abstract class AbstractEntityInitializer extends AbstractFetchParentAcces
|
|||
currentNavigablePath = currentNavigablePath.getParent();
|
||||
parentInitializer = rowProcessingState.resolveInitializer( currentNavigablePath.getParent() );
|
||||
}
|
||||
if ( parentInitializer != null && parentInitializer.asEntityInitializer()
|
||||
if ( modelPart.isEntityIdentifierMapping() ) {
|
||||
return false;
|
||||
}
|
||||
else if ( parentInitializer != null && parentInitializer.asEntityInitializer()
|
||||
.getEntityDescriptor()
|
||||
.getEntityMetamodel()
|
||||
.isPolymorphic() ) {
|
||||
|
|
Loading…
Reference in New Issue