/*
* 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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.jpa;
import javax.persistence.EntityManager;
import org.hibernate.Session;
import org.hibernate.query.QueryProducer;
Additional contract for Hibernate implementations of EntityManager
providing access to various Hibernate specific functionality. Author: Gavin King Deprecated: (snce 5.2) Use Session (or SessionImplementor), as it now extends EntityManager directly
/**
* Additional contract for Hibernate implementations of {@link javax.persistence.EntityManager} providing access to various Hibernate
* specific functionality.
*
* @author Gavin King
*
* @deprecated (snce 5.2) Use Session (or SessionImplementor), as it now extends EntityManager directly
*/
@Deprecated
public interface HibernateEntityManager extends EntityManager, QueryProducer {
Retrieve a reference to the Hibernate Session
used by this EntityManager
. Returns: The session
/**
* Retrieve a reference to the Hibernate {@link org.hibernate.Session} used by this {@link javax.persistence.EntityManager}.
*
* @return The session
*/
Session getSession();
}