public class HibernateConfiguration extends Object implements EntityManagerFactoryProvider
Modifier and Type | Class and Description |
---|---|
static class |
HibernateConfiguration.NuxeoTransactionManagerLookup
Hibernate Transaction Manager Lookup that uses our framework.
|
Modifier and Type | Field and Description |
---|---|
List<Class<?>> |
annotedClasses |
protected org.hibernate.ejb.Ejb3Configuration |
cfg |
Properties |
hibernateProperties |
static String |
JTA |
String |
name |
static String |
RESOURCE_LOCAL |
static String |
TXTYPE_PROPERTY_NAME |
Constructor and Description |
---|
HibernateConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotedClass(Class<?> annotedClass) |
protected javax.persistence.EntityManagerFactory |
createEntityManagerFactory(Map<String,String> properties) |
javax.persistence.EntityManagerFactory |
getFactory() |
javax.persistence.EntityManagerFactory |
getFactory(String txType) |
static String |
getTxType() |
static HibernateConfiguration |
load(URL location) |
void |
merge(HibernateConfiguration other) |
void |
removeAnnotedClass(Class<?> annotedClass) |
void |
setDatasource(String name) |
org.hibernate.ejb.Ejb3Configuration |
setupConfiguration() |
org.hibernate.ejb.Ejb3Configuration |
setupConfiguration(Map<String,String> properties) |
public static final String RESOURCE_LOCAL
public static final String TXTYPE_PROPERTY_NAME
public final Properties hibernateProperties
public final List<Class<?>> annotedClasses
protected org.hibernate.ejb.Ejb3Configuration cfg
public HibernateConfiguration()
public void setDatasource(String name)
public void addAnnotedClass(Class<?> annotedClass)
public void removeAnnotedClass(Class<?> annotedClass)
public org.hibernate.ejb.Ejb3Configuration setupConfiguration()
public org.hibernate.ejb.Ejb3Configuration setupConfiguration(Map<String,String> properties)
public javax.persistence.EntityManagerFactory getFactory(String txType)
getFactory
in interface EntityManagerFactoryProvider
protected javax.persistence.EntityManagerFactory createEntityManagerFactory(Map<String,String> properties)
public javax.persistence.EntityManagerFactory getFactory()
getFactory
in interface EntityManagerFactoryProvider
public static HibernateConfiguration load(URL location)
public void merge(HibernateConfiguration other)
Copyright © 2017 Nuxeo. All rights reserved.