HHH-14826 Fix regression caused by one-to-one L2 cache support
This commit is contained in:
parent
0c6ba01ee0
commit
6fa04c5f38
|
@ -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