Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

HHH-8087 - Cleanup

  • Loading branch information...
commit 03a56f58b99e0da977e395ae0af5d71edb77fb2f 1 parent fa12131
@lukasz-antoniak lukasz-antoniak authored
View
5 ...te-envers/src/main/java/org/hibernate/envers/event/BaseEnversCollectionEventListener.java
@@ -122,10 +122,11 @@ protected final void onCollectionAction(
}
/**
+ * Forces persistent collection initialization.
* @param event Collection event.
- * @return Initialized persistent collection.
+ * @return Stored snapshot.
*/
- protected Serializable getInitializedCollection(AbstractCollectionEvent event) {
+ protected Serializable initializeCollection(AbstractCollectionEvent event) {
event.getCollection().forceInitialization();
return event.getCollection().getStoredSnapshot();
}
View
2  .../src/main/java/org/hibernate/envers/event/EnversPreCollectionRemoveEventListenerImpl.java
@@ -51,7 +51,7 @@ public void onPreRemoveCollection(PreCollectionRemoveEvent event) {
Serializable oldColl = collectionEntry.getSnapshot();
if ( !event.getCollection().wasInitialized() && shouldGenerateRevision( event ) ) {
// In case of uninitialized collection we need a fresh snapshot to properly calculate audit data.
- oldColl = getInitializedCollection( event );
+ oldColl = initializeCollection( event );
}
onCollectionAction( event, null, oldColl, collectionEntry );
}
Please sign in to comment.
Something went wrong with that request. Please try again.