Wow, that formatting is awful, and I can't edit it. No idea what happened. 
If you bother reading it and trying to help, THANK YOU

On Thursday, May 12, 2016 at 1:44:22 PM UTC-6, Kevin Williams wrote:
>
> I'm trying to bootstrap a HibernateBundle in a command so that I can do 
> some database maintenance. We're using Dropwizard 0.7.1.
>
> This isn't working and I don't understand why:
>
> private final HibernateBundle<BonzaiDropwizardServiceConfiguration> 
> hibernateBundle
>         = new 
> HibernateBundle<BonzaiDropwizardServiceConfiguration>(BonzaiProjectEntity.class)
> {
>     @Override
>     public DataSourceFactory 
> getDataSourceFactory(BonzaiDropwizardServiceConfiguration configuration) {
>         return configuration.getDataSourceFactory();
>     }
> };
>
> ....
>
> @Override
> protected void run(Bootstrap<BonzaiDropwizardServiceConfiguration> bootstrap, 
> Namespace namespace, BonzaiDropwizardServiceConfiguration configuration) 
> throws Exception {
>
>     bootstrap.addBundle(hibernateBundle);
>
>     // do database stuff
> }
>
>
> Any help is appreciated.
>

-- 
You received this message because you are subscribed to the Google Groups 
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to