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