Skip to content

Commit

Permalink
Revert "HHH-3730 Compare both ids in isModified instead of an object …
Browse files Browse the repository at this point in the history
…and an id"

This reverts commit c790339.
  • Loading branch information
brmeyer committed Apr 21, 2014
1 parent e541ab0 commit 24b0419
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -227,9 +227,8 @@ public boolean isModified(
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(
Expand Down

0 comments on commit 24b0419

Please sign in to comment.