public abstract class HibernateBundle<T extends io.dropwizard.Configuration> extends Object implements io.dropwizard.ConfiguredBundle<T>, DatabaseConfiguration<T>
Modifier | Constructor and Description |
---|---|
protected |
HibernateBundle(Class<?> entity,
Class<?>... entities) |
protected |
HibernateBundle(com.google.common.collect.ImmutableList<Class<?>> entities,
SessionFactoryFactory sessionFactoryFactory) |
Modifier and Type | Method and Description |
---|---|
protected void |
configure(org.hibernate.cfg.Configuration configuration) |
org.hibernate.SessionFactory |
getSessionFactory() |
void |
initialize(io.dropwizard.setup.Bootstrap<?> bootstrap) |
void |
run(T configuration,
io.dropwizard.setup.Environment environment) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataSourceFactory
protected HibernateBundle(com.google.common.collect.ImmutableList<Class<?>> entities, SessionFactoryFactory sessionFactoryFactory)
public final void initialize(io.dropwizard.setup.Bootstrap<?> bootstrap)
initialize
in interface io.dropwizard.ConfiguredBundle<T extends io.dropwizard.Configuration>
public final void run(T configuration, io.dropwizard.setup.Environment environment) throws Exception
public org.hibernate.SessionFactory getSessionFactory()
protected void configure(org.hibernate.cfg.Configuration configuration)
Copyright © 2014. All rights reserved.