HHH-11293 - Consider enhanced entities with collections as being not unequivocally non-dirty
This commit is contained in:
parent
71d278b77d
commit
0908b2d9a6
|
@ -354,7 +354,7 @@ public abstract class AbstractEntityEntry implements Serializable, EntityEntry {
|
|||
@SuppressWarnings( {"SimplifiableIfStatement"})
|
||||
private boolean isUnequivocallyNonDirty(Object entity) {
|
||||
if ( entity instanceof SelfDirtinessTracker ) {
|
||||
return ! ( (SelfDirtinessTracker) entity ).$$_hibernate_hasDirtyAttributes();
|
||||
return ! persister.hasCollections() && ! ( (SelfDirtinessTracker) entity ).$$_hibernate_hasDirtyAttributes();
|
||||
}
|
||||
|
||||
final CustomEntityDirtinessStrategy customEntityDirtinessStrategy =
|
||||
|
|
Loading…
Reference in New Issue