@Deprecated public interface HibernateEntityManagerFactory extends EntityManagerFactory, Serializable
Contract giving access to the underlying SessionFactory from an EntityManagerFactory
| Modifier and Type | Method and Description |
|---|---|
<T> List<EntityGraph<? super T>> |
findEntityGraphsByType(Class<T> entityClass)
Deprecated.
Find all
EntityGraphs associated with a given entity type. |
default String |
getEntityManagerFactoryName()
Deprecated.
null
|
default EntityType |
getEntityTypeByName(String entityName)
Deprecated.
Use org.hibernate.MetamodelImplementor#getEntityTypeByName instead.
|
Metamodel |
getMetamodel()
Deprecated.
|
default SessionFactoryImplementor |
getSessionFactory()
Deprecated.
The expectation is that SessionFactory implementors also implement EntityManagerFactory; so this call
really should just return
this |
addNamedEntityGraph, addNamedQuery, close, createEntityManager, createEntityManager, createEntityManager, createEntityManager, getCache, getCriteriaBuilder, getPersistenceUnitUtil, getProperties, isOpen, unwrap@Deprecated default SessionFactoryImplementor getSessionFactory()
thisObtain the underlying Hibernate SessionFactory.
<T> List<EntityGraph<? super T>> findEntityGraphsByType(Class<T> entityClass)
Find all EntityGraphs associated with a given entity type.
entityClass - the entity type for which to find all EntityGraphs.EntityGraph instances associated with the given entity type. The empty list is
returned in case there are not entity graphs.Metamodel getMetamodel()
getMetamodel in interface EntityManagerFactory@Deprecated default String getEntityManagerFactoryName()
Returns the name of the factory. The name is either can be specified via the property <i>hibernate.ejb.entitymanager_factory_name</i>. If the property is not set the persistence unit name is used. If persistence unit name is not available, a unique name will be generated.
@Deprecated default EntityType getEntityTypeByName(String entityName)
Find an entity type by name
entityName - entity nameEntityType for the specified nameCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.