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)
Initializes the environment.
|
configure, createHibernate5Module, getSessionFactory, initialize, isLazyLoadingEnabled, name, registerUnitOfWorkListenerIfAbsent, setLazyLoadingEnabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataSourceFactorypublic 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
ConfiguredBundlerun in interface ConfiguredBundle<T>run in class HibernateBundle<T>configuration - the configuration objectenvironment - the application's EnvironmentException - if something goes wrongCopyright © 2011. All rights reserved.