HHH-17387 Never skip entity initializers inside composite ids

This commit is contained in:
Marco Belladelli 2023-11-28 15:10:20 +01:00 committed by Christian Beikov
parent 8f81349400
commit ee43bb51b9
1 changed files with 4 additions and 1 deletions

View File

@ -420,7 +420,10 @@ public abstract class AbstractEntityInitializer extends AbstractFetchParentAcces
currentNavigablePath = currentNavigablePath.getParent(); currentNavigablePath = currentNavigablePath.getParent();
parentInitializer = rowProcessingState.resolveInitializer( currentNavigablePath.getParent() ); parentInitializer = rowProcessingState.resolveInitializer( currentNavigablePath.getParent() );
} }
if ( parentInitializer != null && parentInitializer.asEntityInitializer() if ( modelPart.isEntityIdentifierMapping() ) {
return false;
}
else if ( parentInitializer != null && parentInitializer.asEntityInitializer()
.getEntityDescriptor() .getEntityDescriptor()
.getEntityMetamodel() .getEntityMetamodel()
.isPolymorphic() ) { .isPolymorphic() ) {