![JAR search and dependency download from the Maven repository](/logo.png)
org.hibernate.event.AbstractEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate Show documentation
Show all versions of hibernate Show documentation
Relational Persistence for Java
//$Id: AbstractEvent.java 6929 2005-05-27 03:54:08Z oneovthafew $
package org.hibernate.event;
import java.io.Serializable;
/**
* Defines a base class for Session generated events.
*
* @author Steve Ebersole
*/
public abstract class AbstractEvent implements Serializable {
private final EventSource session;
/**
* Constructs an event from the given event session.
*
* @param source The session event source.
*/
public AbstractEvent(EventSource source) {
this.session = source;
}
/**
* Returns the session event source for this event. This is the underlying
* session from which this event was generated.
*
* @return The session event source.
*/
public final EventSource getSession() {
return session;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy