Skip to content

Commit

Permalink
HHH-16380 Avoid metamodel access when instantiating entity instances
Browse files Browse the repository at this point in the history
  • Loading branch information
mbladel authored and beikov committed Mar 27, 2023
1 parent c2a3bd3 commit 055aeba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ protected Object resolveEntityInstance(Object entityIdentifier, RowProcessingSta
}

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",
Expand Down

0 comments on commit 055aeba

Please sign in to comment.