Top Description Methods
org.hibernate.jpa

public Interface HibernateEntityManager

extends EntityManager, QueryProducer
Known Direct Subinterfaces
org.hibernate.Session, org.hibernate.ejb.HibernateEntityManager
Annotations
@Deprecated
Imports
javax.persistence.EntityManager, org.hibernate.Session, org.hibernate.query.QueryProducer

Deprecated

(since 5.2) Use Session (or SessionImplementor), as it now extends EntityManager directly

Additional contract for Hibernate implementations of javax.persistence.EntityManager providing access to various Hibernate specific functionality.
Author
Gavin King

Method Summary

Modifier and TypeMethod and Description
public Session

Returns:

The session
getSession
()

Deprecated as a consequence of Session being deprecated.
Retrieve a reference to the Hibernate org.hibernate.Session used by this javax.persistence.EntityManager.
Inherited from javax.persistence.EntityManager:
clearclosecontainscreateEntityGraphcreateEntityGraphcreateNamedQuerycreateNamedQuerycreateNamedStoredProcedureQuerycreateNativeQuerycreateNativeQuerycreateNativeQuerycreateQuerycreateQuerycreateQuerycreateQuerycreateQuerycreateStoredProcedureQuerycreateStoredProcedureQuerycreateStoredProcedureQuerydetachfindfindfindfindflushgetCriteriaBuildergetDelegategetEntityGraphgetEntityGraphsgetEntityManagerFactorygetFlushModegetLockModegetMetamodelgetPropertiesgetReferencegetTransactionisJoinedToTransactionisOpenjoinTransactionlocklockmergepersistrefreshrefreshrefreshrefreshremovesetFlushModesetPropertyunwrap
Inherited from org.hibernate.query.QueryProducer:
createNamedQuerycreateNamedQuerycreateNativeQuerycreateNativeQuerycreateNativeQuerycreateQuerycreateQuerycreateQuerycreateQuerycreateQuerycreateSQLQuerygetNamedNativeQuerygetNamedQuerygetNamedSQLQuery

Method Detail

getSessionback to summary
public Session getSession()

Deprecated

as a consequence of Session being deprecated. See corresponding docs for further information.

Retrieve a reference to the Hibernate org.hibernate.Session used by this javax.persistence.EntityManager.

Returns:Session

The session