HHH-16380 Avoid metamodel access when instantiating entity instances
This commit is contained in:
parent
c2a3bd3b48
commit
055aeba6b9
|
@ -659,7 +659,7 @@ public abstract class AbstractEntityInitializer extends AbstractFetchParentAcces
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Object instantiateEntity(Object entityIdentifier, SharedSessionContractImplementor session) {
|
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 ) {
|
if ( EntityLoadingLogging.DEBUG_ENABLED ) {
|
||||||
EntityLoadingLogging.ENTITY_LOADING_LOGGER.debugf(
|
EntityLoadingLogging.ENTITY_LOADING_LOGGER.debugf(
|
||||||
"(%s) Created new entity instance [%s] : %s",
|
"(%s) Created new entity instance [%s] : %s",
|
||||||
|
|
Loading…
Reference in New Issue