HHH-18085 Also remove loading holder when loading shallow cached entity
This commit is contained in:
parent
06f301f463
commit
a86b35e664
|
@ -944,6 +944,7 @@ public class EntityInitializerImpl extends AbstractInitializer<EntityInitializer
|
|||
assert data.entityHolder.getEntityInitializer() == this;
|
||||
// If this initializer owns the entity, we have to remove the entity holder,
|
||||
// because the subsequent loading process will claim the entity
|
||||
rowProcessingState.getJdbcValuesSourceProcessingState().getLoadingEntityHolders().remove( data.entityHolder );
|
||||
session.getPersistenceContextInternal().removeEntityHolder( data.entityKey );
|
||||
return session.internalLoad(
|
||||
data.concreteDescriptor.getEntityName(),
|
||||
|
|
Loading…
Reference in New Issue