Interface HibernateEntityManagerFactory

    • Method Detail

      • getSessionFactory

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

        <T> java.util.List<EntityGraph<? super T>> findEntityGraphsByType​(java.lang.Class<T> entityClass)
        Deprecated.
        Find all EntityGraphs associated with a given entity type.
        Parameters:
        entityClass - the entity type for which to find all EntityGraphs.
        Returns:
        A list of EntityGraph instances associated with the given entity type. The empty list is returned in case there are not entity graphs.
      • getEntityManagerFactoryName

        @Deprecated
        default java.lang.String getEntityManagerFactoryName()
        Deprecated.
        - no longer necessary. all references can be directly replaced with calls to SessionFactoryOptions.getSessionFactoryName() via getSessionFactory() -> 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.
        Returns:
        the name of the factory.
      • getEntityTypeByName

        @Deprecated
        default EntityType getEntityTypeByName​(java.lang.String entityName)
        Deprecated.
        Use org.hibernate.MetamodelImplementor#getEntityTypeByName instead.
        Find an entity type by name
        Parameters:
        entityName - entity name
        Returns:
        the EntityType for the specified name