Hibernate vs. JPA (hibernate-5.x deprecation warnings after upgrading to dropwizard-1.0.0)

818 views
Skip to first unread message

frankgrimes97

unread,
Aug 10, 2016, 10:25:28 AM8/10/16
to dropwizard-user
Hi All,

I am seeing the following warnings in the logs after upgrading to dropwizard-1.0.0.

"WARN  org.hibernate.orm.deprecation - HHH90000022: Hibernate's legacy org.hibernate.Criteria API is deprecated; use the JPA javax.persistence.criteria.CriteriaQuery instead "

Are there plans to migrate to the JPA APIs?

Regards,

Frank Grimes

Scott Escue

unread,
Sep 10, 2016, 2:47:23 AM9/10/16
to dropwizard-user
Frank,

I just created and published a JPA module for Dropwizard.  I basically reworked Dropwizard Hibernate to expose a shareable, thread-safe EntityManager that works with the UnitOfWork annotation.  Setup and configuration is almost identical to that for Dropwizard Hibernate.  So far I've only published releases compatible with Dropwizard 0.9.0 - 0.9.3.  I'd like to get some feedback on the project before releasing a 1.0 milestone compatible with Dropwizard 1.0.0.  If you have the interest and time to check it out I'd appreciate any thoughts or feedback you might have.


Github: https://github.com/scottescue/dropwizard-entitymanager

User Guide: http://scottescue.com/dropwizard-entitymanager/

Reply all
Reply to author
Forward
0 new messages