diff --git a/hibernate-core/src/main/java/org/hibernate/engine/internal/StatefulPersistenceContext.java b/hibernate-core/src/main/java/org/hibernate/engine/internal/StatefulPersistenceContext.java index 2aed5a2673..49c32a27bd 100644 --- a/hibernate-core/src/main/java/org/hibernate/engine/internal/StatefulPersistenceContext.java +++ b/hibernate-core/src/main/java/org/hibernate/engine/internal/StatefulPersistenceContext.java @@ -255,9 +255,7 @@ public class StatefulPersistenceContext implements PersistenceContext { entitySnapshotsByKey.clear(); collectionsByKey.clear(); collectionEntries.clear(); - if ( unownedCollections != null ) { - unownedCollections.clear(); - } + unownedCollections = null; proxiesByKey = null; nullifiableEntityKeys = null; if ( batchFetchQueue != null ) {