Class HibernateBundle<C extends io.dropwizard.Configuration>
- java.lang.Object
-
- org.sdase.commons.server.hibernate.HibernateBundle<C>
-
- All Implemented Interfaces:
io.dropwizard.ConfiguredBundle<C>
public class HibernateBundle<C extends io.dropwizard.Configuration> extends java.lang.Object implements io.dropwizard.ConfiguredBundle<C>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HibernateBundle.Builder<T extends io.dropwizard.Configuration>
static interface
HibernateBundle.FinalBuilder<T extends io.dropwizard.Configuration>
static interface
HibernateBundle.InitialBuilder
static interface
HibernateBundle.ScanPackageBuilder<T extends io.dropwizard.Configuration>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HibernateBundle.InitialBuilder
builder()
void
initialize(io.dropwizard.setup.Bootstrap<?> bootstrap)
void
run(C configuration, io.dropwizard.setup.Environment environment)
org.hibernate.SessionFactory
sessionFactory()
-
-
-
Method Detail
-
builder
public static HibernateBundle.InitialBuilder builder()
-
sessionFactory
public org.hibernate.SessionFactory sessionFactory()
-
initialize
public void initialize(io.dropwizard.setup.Bootstrap<?> bootstrap)
- Specified by:
initialize
in interfaceio.dropwizard.ConfiguredBundle<C extends io.dropwizard.Configuration>
-
-