HHH-16380 Avoid metamodel access when instantiating entity instances
This commit is contained in:
parent
8f321f670d
commit
fff7f341b1
|
@ -659,7 +659,7 @@ public abstract class AbstractEntityInitializer extends AbstractFetchParentAcces
|
|||
}
|
||||
|
||||
protected Object instantiateEntity(Object entityIdentifier, SharedSessionContractImplementor session) {
|
||||
final Object instance = session.instantiate( concreteDescriptor.getEntityName(), entityKey.getIdentifier() );
|
||||
final Object instance = session.instantiate( concreteDescriptor, entityKey.getIdentifier() );
|
||||
if ( EntityLoadingLogging.DEBUG_ENABLED ) {
|
||||
EntityLoadingLogging.ENTITY_LOADING_LOGGER.debugf(
|
||||
"(%s) Created new entity instance [%s] : %s",
|
||||
|
|
Loading…
Reference in New Issue