public abstract class HibernateBundle<T> extends HibernateBundle<T>
Modifier and Type | Field and Description |
---|---|
static String |
PRIMARY |
static String |
READER |
DEFAULT_NAME, entities, lazyLoadingEnabled, sessionFactory, sessionFactoryFactory
Modifier | Constructor and Description |
---|---|
protected |
HibernateBundle(Class<?> entity,
Class<?>... entities) |
protected |
HibernateBundle(List<Class<?>> entities,
SessionFactoryFactory sessionFactoryFactory) |
Modifier and Type | Method and Description |
---|---|
abstract PooledDataSourceFactory |
getReadSourceFactory(T configuration) |
void |
run(T configuration,
Environment environment) |
configure, createHibernate5Module, getSessionFactory, initialize, isLazyLoadingEnabled, name, registerUnitOfWorkListenerIfAbsent, setLazyLoadingEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataSourceFactory
public static final String PRIMARY
public static final String READER
protected HibernateBundle(List<Class<?>> entities, SessionFactoryFactory sessionFactoryFactory)
public abstract PooledDataSourceFactory getReadSourceFactory(T configuration)
public void run(T configuration, Environment environment) throws Exception
run
in interface ConfiguredBundle<T>
run
in class HibernateBundle<T>
Exception
Copyright © 2011. All rights reserved.