org.hibernate.internal.AbstractSessionImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
Hibernate's core ORM functionality
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.internal;
import java.io.Serializable;
import org.hibernate.engine.spi.SessionImplementor;
import org.hibernate.event.spi.EventSource;
import org.hibernate.resource.jdbc.spi.JdbcSessionOwner;
import org.hibernate.resource.transaction.spi.TransactionCoordinatorBuilder.Options;
import org.hibernate.type.descriptor.spi.WrapperOptions;
/**
* @author Gavin King
*/
public abstract class AbstractSessionImpl
extends AbstractSharedSessionContract
implements Serializable, JdbcSessionOwner, SessionImplementor, EventSource, Options, WrapperOptions {
protected AbstractSessionImpl(SessionFactoryImpl factory, SessionCreationOptions options) {
super( factory, options );
}
@Override
public SessionImplementor getSession() {
return this;
}
}