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