File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
hibernate-core/src/main/java/org/hibernate/sql/results/graph/entity/internal Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -974,7 +974,7 @@ else if ( lazyInitializer.isUninitialized() ) {
974
974
? entityDescriptor
975
975
: determineConcreteEntityDescriptor ( rowProcessingState , discriminatorAssembler , entityDescriptor );
976
976
assert data .concreteDescriptor != null ;
977
- resolveEntityKey ( data , lazyInitializer .getIdentifier () );
977
+ resolveEntityKey ( data , lazyInitializer .getInternalIdentifier () );
978
978
data .entityHolder = persistenceContext .claimEntityHolderIfPossible (
979
979
data .entityKey ,
980
980
null ,
@@ -989,7 +989,7 @@ else if ( lazyInitializer.isUninitialized() ) {
989
989
else {
990
990
data .entityInstanceForNotify = lazyInitializer .getImplementation ();
991
991
data .concreteDescriptor = session .getEntityPersister ( null , data .entityInstanceForNotify );
992
- resolveEntityKey ( data , lazyInitializer .getIdentifier () );
992
+ resolveEntityKey ( data , lazyInitializer .getInternalIdentifier () );
993
993
data .entityHolder = persistenceContext .getEntityHolder ( data .entityKey );
994
994
// Even though the lazyInitializer reports it is initialized, check if the entity holder reports initialized,
995
995
// because in a nested initialization scenario, this nested initializer must initialize the entity
You can’t perform that action at this time.
0 commit comments