Revert "HHH-3730 Compare both ids in isModified instead of an object and an id"

This reverts commit 1a10937ae9.
This commit is contained in:
Brett Meyer 2014-04-21 09:45:20 -04:00
parent 1b41e52397
commit be7592526f
1 changed files with 2 additions and 3 deletions

View File

@ -227,9 +227,8 @@ public class ManyToOneType extends EntityType {
return true;
}
// the ids are fully resolved, so compare them with isDirty(), not isModified()
Object oldid = getIdentifier( old, session );
Object newid = getIdentifier( current, session );
return getIdentifierOrUniqueKeyType( session.getFactory() ).isDirty( oldid, newid, session );
return getIdentifierOrUniqueKeyType( session.getFactory() )
.isDirty( old, getIdentifier( current, session ), session );
}
public Serializable disassemble(