public class HibernatePersistenceProvider extends Object implements PersistenceProvider
PersistenceProvider
implementationConstructor and Description |
---|
HibernatePersistenceProvider() |
Modifier and Type | Method and Description |
---|---|
EntityManagerFactory |
createContainerEntityManagerFactory(PersistenceUnitInfo info,
Map properties)
Note: per-spec, the values passed as
properties override values found in PersistenceUnitInfo |
EntityManagerFactory |
createEntityManagerFactory(String persistenceUnitName,
Map properties)
Note: per-spec, the values passed as
properties override values found in persistence.xml |
void |
generateSchema(PersistenceUnitInfo info,
Map map) |
boolean |
generateSchema(String persistenceUnitName,
Map map) |
protected EntityManagerFactoryBuilder |
getEntityManagerFactoryBuilder(PersistenceUnitDescriptor persistenceUnitDescriptor,
Map integration,
ClassLoader providedClassLoader) |
protected EntityManagerFactoryBuilder |
getEntityManagerFactoryBuilderOrNull(String persistenceUnitName,
Map properties) |
protected EntityManagerFactoryBuilder |
getEntityManagerFactoryBuilderOrNull(String persistenceUnitName,
Map properties,
ClassLoader providedClassLoader) |
ProviderUtil |
getProviderUtil() |
protected static Map |
wrap(Map properties) |
public EntityManagerFactory createEntityManagerFactory(String persistenceUnitName, Map properties)
properties
override values found in persistence.xml
createEntityManagerFactory
in interface PersistenceProvider
protected EntityManagerFactoryBuilder getEntityManagerFactoryBuilderOrNull(String persistenceUnitName, Map properties)
protected EntityManagerFactoryBuilder getEntityManagerFactoryBuilderOrNull(String persistenceUnitName, Map properties, ClassLoader providedClassLoader)
public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map properties)
properties
override values found in PersistenceUnitInfo
createContainerEntityManagerFactory
in interface PersistenceProvider
public void generateSchema(PersistenceUnitInfo info, Map map)
generateSchema
in interface PersistenceProvider
public boolean generateSchema(String persistenceUnitName, Map map)
generateSchema
in interface PersistenceProvider
protected EntityManagerFactoryBuilder getEntityManagerFactoryBuilder(PersistenceUnitDescriptor persistenceUnitDescriptor, Map integration, ClassLoader providedClassLoader)
public ProviderUtil getProviderUtil()
getProviderUtil
in interface PersistenceProvider
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.