HHH-14826 Fix regression caused by one-to-one L2 cache support

This commit is contained in:
Amit Mendapara 2021-09-17 15:32:50 +05:30 committed by Sanne Grinovero
parent 0c6ba01ee0
commit 6fa04c5f38
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ public class OneToOneType extends EntityType {
Serializable id = ( Serializable ) getIdentifierType( session ).assemble( oid, session, null );
if ( id == null ) {
return null;
return resolve( session.getContextEntityIdentifier(owner), session, owner );
}
return resolveIdentifier( id, session );