| Field Summary |
|---|
| public static final String | PROVIDER | Provider |
| public static final String | TRANSACTION_TYPE | �
transaction type |
| public static final String | JTA_DATASOURCE | JTA datasource name |
| public static final String | NON_JTA_DATASOURCE | Non JTA datasource name |
| public static final String | AUTODETECTION | JAR autodetection artifacts class, hbm |
| public static final String | CFG_FILE | cfg.xml configuration file used |
| public static final String | CLASS_CACHE_PREFIX | Caching configuration should follow the following pattern
hibernate.ejb.classcache. usage[, region]
where usage is the cache strategy used and region the cache region name |
| public static final String | COLLECTION_CACHE_PREFIX | Caching configuration should follow the following pattern
hibernate.ejb.collectioncache.. usage[, region]
where usage is the cache strategy used and region the cache region name |
| public static final String | INTERCEPTOR | Interceptor class name, the class has to have a no-arg constructor |
| public static final String | NAMING_STRATEGY | Naming strategy class name, the class has to have a no-arg constructor |
| public static final String | EVENT_LISTENER_PREFIX | Event configuration should follow the following pattern
hibernate.ejb.event.[eventType] f.q.c.n.EventListener1, f.q.c.n.EventListener12 ... |
| public static final String | USE_CLASS_ENHANCER | Enable the class file enhancement |
| public static final String | DISCARD_PC_ON_CLOSE | Whether or not discard persistent context on entityManager.close()
The EJB3 compliant and default choice is false |
| public static final String | CONFIGURATION_JNDI_NAME | Consider this as experimental
It is not recommended to set up this property, the configuration is stored
in the JNDI in a serialized form |
| public static final String | CLASS_NAMES | List of classes names
Internal use only |
| public static final String | PACKAGE_NAMES | List of annotated packages
Internal use only |
| public static final String | XML_FILE_NAMES | List of classes names
Internal use only |
| public static final String | HBXML_FILES | |
| public static final String | LOADED_CLASSES | |
| public static final String | JACC_CONTEXT_ID | |
| public static final String | JACC_PREFIX | |
| public static final String | JACC_ENABLED | |
| public static final String | PERSISTENCE_UNIT_NAME | |
| Method from org.hibernate.ejb.HibernatePersistence Detail: |
public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info,
Map map) {
Ejb3Configuration cfg = new Ejb3Configuration();
Ejb3Configuration configured = cfg.configure( info, map );
return configured != null ? configured.buildEntityManagerFactory() : null;
}
|
public EntityManagerFactory createEntityManagerFactory(Map properties) {
Ejb3Configuration cfg = new Ejb3Configuration();
return cfg.createEntityManagerFactory( properties );
} Deprecated!
create a factory from a canonical version |
public EntityManagerFactory createEntityManagerFactory(String persistenceUnitName,
Map overridenProperties) {
Ejb3Configuration cfg = new Ejb3Configuration();
Ejb3Configuration configured = cfg.configure( persistenceUnitName, overridenProperties );
return configured != null ? configured.buildEntityManagerFactory() : null;
}
Get an entity manager factory by its entity manager name and given the
appropriate extra properties. Those proeprties override the one get through
the peristence.xml file. |