Package io.dropwizard.hibernate.dual
Class HibernateBundle<T>
java.lang.Object
io.dropwizard.hibernate.HibernateBundle<T>
io.dropwizard.hibernate.dual.HibernateBundle<T>
- All Implemented Interfaces:
ConfiguredBundle<T>
,DatabaseConfiguration<T>
-
Field Summary
FieldsFields inherited from class io.dropwizard.hibernate.HibernateBundle
DEFAULT_NAME, entities, lazyLoadingEnabled, sessionFactory, sessionFactoryFactory
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
HibernateBundle
(Class<?> entity, Class<?>... entities) protected
HibernateBundle
(List<Class<?>> entities, SessionFactoryFactory sessionFactoryFactory) -
Method Summary
Modifier and TypeMethodDescriptionabstract PooledDataSourceFactory
getReadSourceFactory
(T configuration) void
run
(T configuration, Environment environment) Methods inherited from class io.dropwizard.hibernate.HibernateBundle
configure, createHibernate5Module, getSessionFactory, initialize, isLazyLoadingEnabled, name, registerUnitOfWorkListenerIfAbsent, setLazyLoadingEnabled
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.dropwizard.db.DatabaseConfiguration
getDataSourceFactory
-
Field Details
-
PRIMARY
- See Also:
-
READER
- See Also:
-
-
Constructor Details
-
HibernateBundle
-
HibernateBundle
-
-
Method Details
-
getReadSourceFactory
-
run
- Specified by:
run
in interfaceConfiguredBundle<T>
- Overrides:
run
in classHibernateBundle<T>
- Throws:
Exception
-