org.nuxeo.ecm.core.persistence
Class HibernateConfiguration
java.lang.Object
org.nuxeo.ecm.core.persistence.HibernateConfiguration
- All Implemented Interfaces:
- EntityManagerFactoryProvider
public class HibernateConfiguration
- extends Object
- implements EntityManagerFactoryProvider
- Author:
- "Stephane Lacoin (aka matic) "
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESOURCE_LOCAL
public static final String RESOURCE_LOCAL
JTA
public static final String JTA
TXTYPE_PROPERTY_NAME
public static final String TXTYPE_PROPERTY_NAME
- See Also:
- Constant Field Values
name
public String name
hibernateProperties
public final Properties hibernateProperties
annotedClasses
public final List<Class<?>> annotedClasses
cfg
protected org.hibernate.ejb.Ejb3Configuration cfg
HibernateConfiguration
public HibernateConfiguration()
setDatasource
public void setDatasource(String name)
addAnnotedClass
public void addAnnotedClass(Class<?> annotedClass)
removeAnnotedClass
public void removeAnnotedClass(Class<?> annotedClass)
setupConfiguration
public org.hibernate.ejb.Ejb3Configuration setupConfiguration()
getFactory
public EntityManagerFactory getFactory(String txType)
- Specified by:
getFactory
in interface EntityManagerFactoryProvider
getFactory
public EntityManagerFactory getFactory()
- Specified by:
getFactory
in interface EntityManagerFactoryProvider
getTxType
public static String getTxType()
load
public static HibernateConfiguration load(URL location)
merge
public void merge(HibernateConfiguration other)
Copyright © 2010 Nuxeo SAS. All Rights Reserved.