org.hibernate.event.PreCollectionUpdateEvent Maven / Gradle / Ivy
The newest version!
//$Id: $
package org.hibernate.event;
import org.hibernate.collection.PersistentCollection;
import org.hibernate.persister.collection.CollectionPersister;
/**
* An event that occurs before a collection is updated
*
* @author Gail Badner
*/
public class PreCollectionUpdateEvent extends AbstractCollectionEvent {
public PreCollectionUpdateEvent(CollectionPersister collectionPersister,
PersistentCollection collection,
EventSource source) {
super( collectionPersister, collection, source,
getLoadedOwnerOrNull( collection, source ),
getLoadedOwnerIdOrNull( collection, source ) );
}
}