接口 HibernateEntityManagerFactory

    • 方法概要

      所有方法 实例方法 抽象方法 默认方法 已过时的方法 
      修饰符和类型 方法 说明
      <T> List<javax.persistence.EntityGraph<? super T>> findEntityGraphsByType​(Class<T> entityClass)
      已过时。
      Find all EntityGraphs associated with a given entity type.
      default String getEntityManagerFactoryName()
      已过时。
      - no longer necessary.
      default javax.persistence.metamodel.EntityType getEntityTypeByName​(String entityName)
      已过时。
      Use org.hibernate.MetamodelImplementor#getEntityTypeByName instead.
      Metamodel getMetamodel()
      已过时。
       
      default SessionFactoryImplementor getSessionFactory()
      已过时。
      The expectation is that SessionFactory implementors also implement EntityManagerFactory; so this call really should just return this
      • 从接口继承的方法 javax.persistence.EntityManagerFactory

        addNamedEntityGraph, addNamedQuery, close, createEntityManager, createEntityManager, createEntityManager, createEntityManager, getCache, getCriteriaBuilder, getPersistenceUnitUtil, getProperties, isOpen, unwrap
    • 方法详细资料

      • getSessionFactory

        @Deprecated
        default SessionFactoryImplementor getSessionFactory()
        已过时。
        The expectation is that SessionFactory implementors also implement EntityManagerFactory; so this call really should just return this
        Obtain the underlying Hibernate SessionFactory.
        返回:
        The underlying Hibernate SessionFactory
      • findEntityGraphsByType

        <T> List<javax.persistence.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.
        返回:
        A list of EntityGraph instances 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
      • 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 EntityType for the specified name