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.