public class HibernatePersistence extends AvailableSettings implements PersistenceProvider
ALIAS_SPECIFIC_LOCK_MODE, AUTODETECTION, 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, 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() |
Modifier and Type | Method and Description |
---|---|
EntityManagerFactory |
createContainerEntityManagerFactory(PersistenceUnitInfo info,
Map properties)
Create an entity manager factory from the given persistence unit info, using the specified
properties (they override any on the PUI).
|
EntityManagerFactory |
createEntityManagerFactory(Map properties)
Deprecated.
|
EntityManagerFactory |
createEntityManagerFactory(String persistenceUnitName,
Map properties)
Get an entity manager factory by its entity manager name, using the specified
properties (they override any found in the peristence.xml file).
|
ProviderUtil |
getProviderUtil()
Return the utility interface implemented by the persistence
provider.
|
public EntityManagerFactory createEntityManagerFactory(String persistenceUnitName, Map properties)
createEntityManagerFactory
in interface PersistenceProvider
persistenceUnitName
- entity manager nameproperties
- The explicit property valuespublic EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map properties)
createContainerEntityManagerFactory
in interface PersistenceProvider
info
- The persistence unit informationproperties
- The explicit property values@Deprecated public EntityManagerFactory createEntityManagerFactory(Map properties)
public ProviderUtil getProviderUtil()
getProviderUtil
in interface PersistenceProvider
Copyright © 2018 JBoss by Red Hat. All rights reserved.