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:
parent
d14b2f4404
commit
dfe61a4a5e
|
@ -446,6 +446,13 @@ public abstract class AbstractEntityManagerImpl implements HibernateEntityManage
|
|||
return entityManagerFactory;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public HibernateEntityManagerFactory getFactory() {
|
||||
return entityManagerFactory;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue