All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.jpa.HibernateEntityManager Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha1
Show newest version
/*
 * 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.jpa;

import javax.persistence.EntityManager;

import org.hibernate.Session;
import org.hibernate.query.QueryProducer;

/**
 * Additional contract for Hibernate implementations of {@link javax.persistence.EntityManager} providing access to various Hibernate
 * specific functionality.
 *
 * @author Gavin King
 *
 * @deprecated (since 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 {@link org.hibernate.Session} used by this {@link javax.persistence.EntityManager}.
	 *
	 * @return The session
	 */
	Session getSession();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy