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