@Deprecated 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)
Deprecated.
Find all
EntityGraphs associated with a given entity type. |
default String |
getEntityManagerFactoryName()
Deprecated.
- no longer necessary. all references can be directly replaced with
calls to
SessionFactoryOptions.getSessionFactoryName()
via getSessionFactory() -> SessionFactory.getSessionFactoryOptions() |
default EntityType |
getEntityTypeByName(String entityName)
Deprecated.
Use org.hibernate.MetamodelImplementor#getEntityTypeByName instead.
|
Metamodel |
getMetamodel()
Deprecated.
Return an instance of
Metamodel interface for access to the
metamodel of the persistence unit. |
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()
this<T> List<EntityGraph<? super T>> findEntityGraphsByType(Class<T> entityClass)
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()
EntityManagerFactoryMetamodel interface for access to the
metamodel of the persistence unit.getMetamodel in interface EntityManagerFactory@Deprecated default String getEntityManagerFactoryName()
SessionFactoryOptions.getSessionFactoryName()
via getSessionFactory() -> SessionFactory.getSessionFactoryOptions()@Deprecated default EntityType getEntityTypeByName(String entityName)
entityName - entity nameEntityType for the specified nameCopyright © 2019 JBoss by Red Hat. All rights reserved.