接口 HibernateEntityManagerFactory
-
- 所有超级接口:
javax.persistence.EntityManagerFactory,Serializable
@Deprecated public interface HibernateEntityManagerFactory extends javax.persistence.EntityManagerFactory, Serializable
已过时。(since 5.2) Use SessionFactory (or SessionFactoryImplementor) as it now extends EntityManagerFactory directlyContract giving access to the underlyingSessionFactoryfrom anEntityManagerFactory- 作者:
- Gavin King
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 已过时的方法 修饰符和类型 方法 说明 <T> List<javax.persistence.EntityGraph<? super T>>findEntityGraphsByType(Class<T> entityClass)已过时。Find allEntityGraphs associated with a given entity type.default StringgetEntityManagerFactoryName()已过时。- no longer necessary.default javax.persistence.metamodel.EntityTypegetEntityTypeByName(String entityName)已过时。Use org.hibernate.MetamodelImplementor#getEntityTypeByName instead.MetamodelgetMetamodel()已过时。default SessionFactoryImplementorgetSessionFactory()已过时。The expectation is that SessionFactory implementors also implement EntityManagerFactory; so this call really should just returnthis
-
-
-
方法详细资料
-
getSessionFactory
@Deprecated default SessionFactoryImplementor getSessionFactory()
已过时。The expectation is that SessionFactory implementors also implement EntityManagerFactory; so this call really should just returnthisObtain the underlying Hibernate SessionFactory.- 返回:
- The underlying Hibernate SessionFactory
-
findEntityGraphsByType
<T> List<javax.persistence.EntityGraph<? super T>> findEntityGraphsByType(Class<T> entityClass)
已过时。Find allEntityGraphs associated with a given entity type.- 参数:
entityClass- the entity type for which to find allEntityGraphs.- 返回:
- A list of
EntityGraphinstances associated with the given entity type. The empty list is returned in case there are not entity graphs.
-
getMetamodel
Metamodel getMetamodel()
已过时。- 指定者:
getMetamodel在接口中javax.persistence.EntityManagerFactory
-
getEntityManagerFactoryName
@Deprecated default String getEntityManagerFactoryName()
已过时。- no longer necessary. all references can be directly replaced with calls toSessionFactoryOptions.getSessionFactoryName()viagetSessionFactory()->SessionFactory.getSessionFactoryOptions()Returns the name of the factory. The name is either can be specified via the property hibernate.ejb.entitymanager_factory_name. 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.- 返回:
- the name of the factory.
-
getEntityTypeByName
@Deprecated default javax.persistence.metamodel.EntityType getEntityTypeByName(String entityName)
已过时。Use org.hibernate.MetamodelImplementor#getEntityTypeByName instead.Find an entity type by name- 参数:
entityName- entity name- 返回:
- the
EntityTypefor the specified name
-
-