Deprecated
(since 5.2) Use SessionFactory (or SessionFactoryImplementor) as it now extends EntityManagerFactory directly
org.hibernate.SessionFactory from an javax.persistence.EntityManagerFactory
| Modifier and Type | Method and Description |
|---|---|
| public <T> List | Returns: A list ofEntityGraph instances associated with the given entity type. The empty list is
returned in case there are not entity graphs.the entity type for which to find all entityClass)EntityGraphs.Find all |
| public default String | Returns: the name of the factory.
Deprecated
- no longer necessary.
Returns the name of the factory.
|
| public default EntityType | Returns: theEntityType for the specified nameentity name entityName)
Deprecated
Use org.hibernate.MetamodelImplementor#getEntityTypeByName instead.
Find an entity type by name
|
| public Metamodel | getMetamodel()
Redeclares javax. Metamodel interface for access to the
metamodel of the persistence unit.
|
| public default SessionFactoryImplementor | Returns: The underlying Hibernate SessionFactory
Deprecated
The expectation is that SessionFactory implementors also implement EntityManagerFactory; so this call
really should just return
Obtain the underlying Hibernate SessionFactory.
this
|
| findEntityGraphsByType | back to summary |
|---|---|
| public <T> List Find all
| |
| getEntityManagerFactoryName | back to summary |
|---|---|
| public default String getEntityManagerFactoryName()
Deprecated - no longer necessary. all references can be directly replaced with
calls to 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.
| |
| getEntityTypeByName | back to summary |
|---|---|
| public default EntityType Deprecated Use org.hibernate.MetamodelImplementor#getEntityTypeByName instead. Find an entity type by name
| |
| getMetamodel | back to summary |
|---|---|
| public Metamodel getMetamodel() Redeclares javax. Doc from javax. Return an instance of | |
| getSessionFactory | back to summary |
|---|---|
| public default SessionFactoryImplementor getSessionFactory()
Deprecated The expectation is that SessionFactory implementors also implement EntityManagerFactory; so this call
really should just return Obtain the underlying Hibernate SessionFactory.
| |