HHH-14826 Fix regression caused by one-to-one L2 cache support
This commit is contained in:
parent
b15433a49c
commit
a652822ff5
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue