public interface HibernateEntityManagerFactory extends EntityManagerFactory, Serializable
SessionFactory
from an EntityManagerFactory
Modifier and Type | Method and Description |
---|---|
<T> List<EntityGraph<? super T>> |
findEntityGraphsByType(Class<T> entityClass)
Find all
EntityGraph s associated with a given entity type. |
String |
getEntityManagerFactoryName()
Returns the name of the factory.
|
EntityType |
getEntityTypeByName(String entityName)
Find an entity type by name
|
SessionFactoryImplementor |
getSessionFactory()
Obtain the underlying Hibernate SessionFactory.
|
addNamedEntityGraph, addNamedQuery, close, createEntityManager, createEntityManager, createEntityManager, createEntityManager, getCache, getCriteriaBuilder, getMetamodel, getPersistenceUnitUtil, getProperties, isOpen, unwrap
SessionFactoryImplementor getSessionFactory()
<T> List<EntityGraph<? super T>> findEntityGraphsByType(Class<T> entityClass)
EntityGraph
s associated with a given entity type.entityClass
- the entity type for which to find all EntityGraph
s.EntityGraph
instances associated with the given entity type. The empty list is
returned in case there are not entity graphs.String getEntityManagerFactoryName()
EntityType getEntityTypeByName(String entityName)
entityName
- entity nameEntityType
for the specified nameCopyright © 2017 JBoss by Red Hat. All rights reserved.