Open Source Repository

Home /hibernate/hibernate-3.2.4.ga | Repository Home



org/hibernate/event/InitializeCollectionEvent.java
//$Id: InitializeCollectionEvent.java 6929 2005-05-27 03:54:08Z oneovthafew $
package org.hibernate.event;

import org.hibernate.collection.PersistentCollection;

/**
 * An event that occurs when a collection wants to be
 * initialized
 
 @author Gavin King
 */
public class InitializeCollectionEvent extends AbstractEvent {
  
  private final PersistentCollection collection;

  public InitializeCollectionEvent(PersistentCollection collection, EventSource source) {
    super(source);
    this.collection = collection;
  }
  
  public PersistentCollection getCollection() {
    return collection;
  }
}