HHH-4697 - Add means to get HibernateEntityManagerFactory from HibernateEntityManagerImplementor

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18229 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Steve Ebersole 2009-12-15 17:28:51 +00:00
parent d14b2f4404
commit dfe61a4a5e
2 changed files with 14 additions and 0 deletions

View File

@ -446,6 +446,13 @@ public abstract class AbstractEntityManagerImpl implements HibernateEntityManage
return entityManagerFactory;
}
/**
* {@inheritDoc}
*/
public HibernateEntityManagerFactory getFactory() {
return entityManagerFactory;
}
/**
* {@inheritDoc}
*/

View File

@ -36,6 +36,13 @@ import org.hibernate.LockOptions;
* @author Steve Ebersole
*/
public interface HibernateEntityManagerImplementor extends HibernateEntityManager {
/**
* Get access to the Hibernate extended EMF contract.
*
* @return The Hibernate EMF contract for this EM.
*/
public HibernateEntityManagerFactory getFactory();
/**
* Provides access to whether a transaction is currently in progress.
*