HibernatePersistenceProvider
instead@Deprecated public class HibernatePersistence extends HibernatePersistenceProvider implements PersistenceProvider, AvailableSettings
ALIAS_SPECIFIC_LOCK_MODE, AUTODETECTION, CDI_BEAN_MANAGER, CFG_FILE, CLASS_CACHE_PREFIX, CLASS_NAMES, COLLECTION_CACHE_PREFIX, CONFIGURATION_JNDI_NAME, DISCARD_PC_ON_CLOSE, ENTITY_MANAGER_FACTORY_NAME, EVENT_LISTENER_PREFIX, FLUSH_MODE, HBXML_FILES, IDENTIFIER_GENERATOR_STRATEGY_PROVIDER, INTERCEPTOR, JACC_CONTEXT_ID, JACC_ENABLED, JACC_PREFIX, JDBC_DRIVER, JDBC_PASSWORD, JDBC_URL, JDBC_USER, JPA_METAMODEL_GENERATION, JPA_METAMODEL_POPULATION, JTA_DATASOURCE, LOADED_CLASSES, LOCK_SCOPE, LOCK_TIMEOUT, NAMING_STRATEGY, NAMING_STRATEGY_DELEGATOR, NON_JTA_DATASOURCE, PACKAGE_NAMES, PERSIST_VALIDATION_GROUP, PERSISTENCE_UNIT_NAME, PROVIDER, REMOVE_VALIDATION_GROUP, SCANNER, SCHEMA_GEN_CONNECTION, SCHEMA_GEN_CREATE_SCHEMAS, SCHEMA_GEN_CREATE_SCRIPT_SOURCE, SCHEMA_GEN_CREATE_SOURCE, SCHEMA_GEN_DATABASE_ACTION, SCHEMA_GEN_DB_MAJOR_VERSION, SCHEMA_GEN_DB_MINOR_VERSION, SCHEMA_GEN_DB_NAME, SCHEMA_GEN_DROP_SCRIPT_SOURCE, SCHEMA_GEN_DROP_SOURCE, SCHEMA_GEN_LOAD_SCRIPT_SOURCE, SCHEMA_GEN_SCRIPTS_ACTION, SCHEMA_GEN_SCRIPTS_CREATE_TARGET, SCHEMA_GEN_SCRIPTS_DROP_TARGET, SESSION_FACTORY_OBSERVER, SESSION_INTERCEPTOR, SHARED_CACHE_MODE, SHARED_CACHE_RETRIEVE_MODE, SHARED_CACHE_STORE_MODE, TRANSACTION_TYPE, UPDATE_VALIDATION_GROUP, USE_CLASS_ENHANCER, VALIDATION_FACTORY, VALIDATION_MODE, XML_FILE_NAMES
Constructor and Description |
---|
HibernatePersistence()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
EntityManagerFactory |
createContainerEntityManagerFactory(PersistenceUnitInfo info,
Map properties)
Deprecated.
Note: per-spec, the values passed as
properties override values found in PersistenceUnitInfo |
EntityManagerFactory |
createEntityManagerFactory(String persistenceUnitName,
Map properties)
Deprecated.
Note: per-spec, the values passed as
properties override values found in persistence.xml |
void |
generateSchema(PersistenceUnitInfo info,
Map map)
Deprecated.
|
boolean |
generateSchema(String persistenceUnitName,
Map map)
Deprecated.
|
protected EntityManagerFactoryBuilder |
getEntityManagerFactoryBuilderOrNull(String persistenceUnitName,
Map properties)
Deprecated.
|
protected EntityManagerFactoryBuilder |
getEntityManagerFactoryBuilderOrNull(String persistenceUnitName,
Map properties,
ClassLoader providedClassLoader)
Deprecated.
|
ProviderUtil |
getProviderUtil()
Deprecated.
|
protected void |
logDeprecation()
Deprecated.
|
getEntityManagerFactoryBuilder, wrap
public EntityManagerFactory createEntityManagerFactory(String persistenceUnitName, Map properties)
HibernatePersistenceProvider
properties
override values found in persistence.xml
createEntityManagerFactory
in interface PersistenceProvider
createEntityManagerFactory
in class HibernatePersistenceProvider
protected void logDeprecation()
public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map properties)
HibernatePersistenceProvider
properties
override values found in PersistenceUnitInfo
createContainerEntityManagerFactory
in interface PersistenceProvider
createContainerEntityManagerFactory
in class HibernatePersistenceProvider
public void generateSchema(PersistenceUnitInfo info, Map map)
generateSchema
in interface PersistenceProvider
generateSchema
in class HibernatePersistenceProvider
public boolean generateSchema(String persistenceUnitName, Map map)
generateSchema
in interface PersistenceProvider
generateSchema
in class HibernatePersistenceProvider
public ProviderUtil getProviderUtil()
getProviderUtil
in interface PersistenceProvider
getProviderUtil
in class HibernatePersistenceProvider
protected EntityManagerFactoryBuilder getEntityManagerFactoryBuilderOrNull(String persistenceUnitName, Map properties, ClassLoader providedClassLoader)
getEntityManagerFactoryBuilderOrNull
in class HibernatePersistenceProvider
protected EntityManagerFactoryBuilder getEntityManagerFactoryBuilderOrNull(String persistenceUnitName, Map properties)
getEntityManagerFactoryBuilderOrNull
in class HibernatePersistenceProvider
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.