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 @@ -959,7 +959,7 @@ else if ( lazyInitializer.isUninitialized() ) {
959
959
? entityDescriptor
960
960
: determineConcreteEntityDescriptor ( rowProcessingState , discriminatorAssembler , entityDescriptor );
961
961
assert data .concreteDescriptor != null ;
962
- resolveEntityKey ( data , lazyInitializer .getIdentifier () );
962
+ resolveEntityKey ( data , lazyInitializer .getInternalIdentifier () );
963
963
data .entityHolder = persistenceContext .claimEntityHolderIfPossible (
964
964
data .entityKey ,
965
965
null ,
@@ -974,7 +974,7 @@ else if ( lazyInitializer.isUninitialized() ) {
974
974
else {
975
975
data .entityInstanceForNotify = lazyInitializer .getImplementation ();
976
976
data .concreteDescriptor = session .getEntityPersister ( null , data .entityInstanceForNotify );
977
- resolveEntityKey ( data , lazyInitializer .getIdentifier () );
977
+ resolveEntityKey ( data , lazyInitializer .getInternalIdentifier () );
978
978
data .entityHolder = persistenceContext .getEntityHolder ( data .entityKey );
979
979
// Even though the lazyInitializer reports it is initialized, check if the entity holder reports initialized,
980
980
// 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