HHH-3730 Compare both ids in isModified instead of an object and an id
This commit is contained in:
parent
ee8f26a4be
commit
c7903392cd
|
@ -227,8 +227,9 @@ public class ManyToOneType extends EntityType {
|
|||
return true;
|
||||
}
|
||||
// the ids are fully resolved, so compare them with isDirty(), not isModified()
|
||||
return getIdentifierOrUniqueKeyType( session.getFactory() )
|
||||
.isDirty( old, getIdentifier( current, session ), session );
|
||||
Object oldid = getIdentifier( old, session );
|
||||
Object newid = getIdentifier( current, session );
|
||||
return getIdentifierOrUniqueKeyType( session.getFactory() ).isDirty( oldid, newid, session );
|
||||
}
|
||||
|
||||
public Serializable disassemble(
|
||||
|
|
Loading…
Reference in New Issue