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, DELAY_CDI_ACCESS, DISCARD_PC_ON_CLOSE, ENHANCER_ENABLE_ASSOCIATION_MANAGEMENT, ENHANCER_ENABLE_DIRTY_TRACKING, ENHANCER_ENABLE_LAZY_INITIALIZATION, 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, 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.
Called by the container when an
EntityManagerFactory
is to be created. |
EntityManagerFactory |
createEntityManagerFactory(String persistenceUnitName,
Map properties)
Deprecated.
Called by
Persistence class when an
EntityManagerFactory is to be created. |
void |
generateSchema(PersistenceUnitInfo info,
Map map)
Deprecated.
Create database schemas and/or tables and/or create DDL
scripts as determined by the supplied properties.
|
boolean |
generateSchema(String persistenceUnitName,
Map map)
Deprecated.
Create database schemas and/or tables and/or create DDL
scripts as determined by the supplied properties.
|
protected EntityManagerFactoryBuilder |
getEntityManagerFactoryBuilderOrNull(String persistenceUnitName,
Map properties)
Deprecated.
|
protected EntityManagerFactoryBuilder |
getEntityManagerFactoryBuilderOrNull(String persistenceUnitName,
Map properties,
ClassLoader providedClassLoader)
Deprecated.
|
ProviderUtil |
getProviderUtil()
Deprecated.
Return the utility interface implemented by the persistence
provider.
|
protected void |
logDeprecation()
Deprecated.
|
getEntityManagerFactoryBuilder, wrap
public EntityManagerFactory createEntityManagerFactory(String persistenceUnitName, Map properties)
HibernatePersistenceProvider
Persistence
class when an
EntityManagerFactory
is to be created.
Note: per-spec, the values passed as properties
override values found in persistence.xml
createEntityManagerFactory
in interface PersistenceProvider
createEntityManagerFactory
in class HibernatePersistenceProvider
persistenceUnitName
- the name of the persistence unitproperties
- a Map of properties for use by the
persistence provider. These properties may be used to
override the values of the corresponding elements in
the persistence.xml
file or specify values for
properties not specified in the persistence.xml
(and may be null if no properties are specified).protected void logDeprecation()
public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map properties)
HibernatePersistenceProvider
EntityManagerFactory
is to be created.
Note: per-spec, the values passed as properties
override values found in PersistenceUnitInfo
createContainerEntityManagerFactory
in interface PersistenceProvider
createContainerEntityManagerFactory
in class HibernatePersistenceProvider
info
- metadata for use by the persistence providerproperties
- a Map of integration-level properties for use
by the persistence provider (may be null if no properties
are specified).
If a Bean Validation provider is present in the classpath,
the container must pass the ValidatorFactory
instance in
the map with the key "javax.persistence.validation.factory"
.public void generateSchema(PersistenceUnitInfo info, Map map)
PersistenceProvider
generateSchema
in interface PersistenceProvider
generateSchema
in class HibernatePersistenceProvider
info
- metadata for use by the persistence providermap
- properties for schema generation; these may also include provider-specific propertiespublic boolean generateSchema(String persistenceUnitName, Map map)
PersistenceProvider
generateSchema
in interface PersistenceProvider
generateSchema
in class HibernatePersistenceProvider
persistenceUnitName
- the name of the persistence unitmap
- properties for schema generation; these may also contain provider-specific properties. The value of
these properties override any values that may have been configured elsewhere.public ProviderUtil getProviderUtil()
PersistenceProvider
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 © 2017 JBoss by Red Hat. All rights reserved.