org.hibernate.ejb
Interface HibernateEntityManager

All Superinterfaces:
EntityManager
All Known Subinterfaces:
HibernateEntityManagerImplementor
All Known Implementing Classes:
AbstractEntityManagerImpl, EntityManagerImpl

public interface HibernateEntityManager
extends EntityManager

Additional contract for Hibernate implementations of EntityManager providing access to various Hibernate specific functionality.


Method Summary
 Session getSession()
          Retrieve a reference to the Hibernate Session used by this EntityManager.
 
Methods inherited from interface javax.persistence.EntityManager
clear, close, contains, createNamedQuery, createNamedQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, createQuery, createQuery, detach, find, find, find, find, flush, getCriteriaBuilder, getDelegate, getEntityManagerFactory, getFlushMode, getLockMode, getMetamodel, getProperties, getReference, getTransaction, isOpen, joinTransaction, lock, lock, merge, persist, refresh, refresh, refresh, refresh, remove, setFlushMode, setProperty, unwrap
 

Method Detail

getSession

Session getSession()
Retrieve a reference to the Hibernate Session used by this EntityManager.

Returns:
The session


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.