Hello all,

I have a project in which I use dropwizard 1.1.2 with dropwizard-hibernate 
to persist JPA entities. So far, I've been using hbm2ddl auto update to 
generate the database tables in development. However, as my project gets 
closer to completion I've been looking to move to a more production 
friendly solution. 

Dropwizard-migrations lets me apply changesets to my database. However that 
would require me to write the changesets on my own, something I'd rather 
avoid given the complicated structure of my entities.

Since dropwizard lacks a hibernate.cfg.xml file, I haven't been able to set 
up properly setup liquibase-hibernate5. I initially tried to set up 
liquibase-maven-plugin with liquibase-hibernate5 employing the use of a 
hibernate.cfg.xml file with the same properties as my config.yml. After 
much tinkering, running liquibase diff on my database would yield an 
error: java.lang.NoSuchMethodError: 
org.hibernate.engine.spi.SessionFactoryImplementor.getProperties()Ljava/util/Properties.
 

I'm wondering if anyone has figured out a way to use dropwizard-migrations 
and liquibase-hibernate5 together, or if there is any other way to do a 
code-first approach with dropwizard + hibernate.

Thanks,
-Namu


-- 
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