01: //$Id: InitializeCollectionEvent.java 6929 2005-05-27 03:54:08Z oneovthafew $
02: package org.hibernate.event;
03:
04: import org.hibernate.collection.PersistentCollection;
05:
06: /**
07: * An event that occurs when a collection wants to be
08: * initialized
09: *
10: * @author Gavin King
11: */
12: public class InitializeCollectionEvent extends AbstractEvent {
13:
14: private final PersistentCollection collection;
15:
16: public InitializeCollectionEvent(PersistentCollection collection,
17: EventSource source) {
18: super (source);
19: this .collection = collection;
20: }
21:
22: public PersistentCollection getCollection() {
23: return collection;
24: }
25: }
|