Package org.hibernate.jpa
Class HibernatePersistenceProvider
- java.lang.Object
-
- org.hibernate.jpa.HibernatePersistenceProvider
-
- All Implemented Interfaces:
PersistenceProvider
public class HibernatePersistenceProvider extends Object implements PersistenceProvider
The best-ever implementation of a JPAPersistenceProvider
.
-
-
Constructor Summary
Constructors Constructor Description HibernatePersistenceProvider()
-
Method Summary
-
-
-
Method Detail
-
createEntityManagerFactory
public EntityManagerFactory createEntityManagerFactory(String persistenceUnitName, Map properties)
- Specified by:
createEntityManagerFactory
in interfacePersistenceProvider
- Implementation Specification:
- Per the specification, the values passed as
properties
override values found inpersistence.xml
-
getEntityManagerFactoryBuilderOrNull
protected EntityManagerFactoryBuilder getEntityManagerFactoryBuilderOrNull(String persistenceUnitName, Map<?,?> properties)
-
getEntityManagerFactoryBuilderOrNull
protected EntityManagerFactoryBuilder getEntityManagerFactoryBuilderOrNull(String persistenceUnitName, Map<?,?> properties, ClassLoader providedClassLoader)
-
getEntityManagerFactoryBuilderOrNull
protected EntityManagerFactoryBuilder getEntityManagerFactoryBuilderOrNull(String persistenceUnitName, Map<?,?> properties, ClassLoaderService providedClassLoaderService)
-
createContainerEntityManagerFactory
public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map properties)
Note: per-spec, the values passed as
properties
override values found inPersistenceUnitInfo
- Specified by:
createContainerEntityManagerFactory
in interfacePersistenceProvider
-
generateSchema
public void generateSchema(PersistenceUnitInfo info, Map map)
- Specified by:
generateSchema
in interfacePersistenceProvider
-
generateSchema
public boolean generateSchema(String persistenceUnitName, Map map)
- Specified by:
generateSchema
in interfacePersistenceProvider
-
getEntityManagerFactoryBuilder
protected EntityManagerFactoryBuilder getEntityManagerFactoryBuilder(PersistenceUnitInfo info, Map<?,?> integration)
-
getEntityManagerFactoryBuilder
protected EntityManagerFactoryBuilder getEntityManagerFactoryBuilder(PersistenceUnitDescriptor persistenceUnitDescriptor, Map<?,?> integration, ClassLoader providedClassLoader)
-
getEntityManagerFactoryBuilder
protected EntityManagerFactoryBuilder getEntityManagerFactoryBuilder(PersistenceUnitDescriptor persistenceUnitDescriptor, Map<?,?> integration, ClassLoaderService providedClassLoaderService)
-
getProviderUtil
public ProviderUtil getProviderUtil()
- Specified by:
getProviderUtil
in interfacePersistenceProvider
-
-