November 19, 2013

JPA configuration for play framework


In my current play project we decided to use hibernate as JPA implementation.

Here is the configuration we use:

Dependencies in project/Build.scala

Database configuration in conf/application.conf

Persistence unit in conf/META-INF/persistence.xml


Hibernate, Java, JPA, Play Framework, Play Framework 2.2, Play4JPA, Scala

You may also like

Leave a Reply

Your email address will not be published. Required fields are marked

Information about Data protection

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  1. Hi!

    We run a play 1.x application using jpa/hibernate. We think about migration to 2.x sometime next year.
    It would be nice if you keep posting about your experiences with play 2.x and jpa (specially in contrast to the jpa implemenation in play 1.x, what are the main differences)



  2. Hi M.,

    thanks for your commit. I will try to find some time to blog more about the topic.


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}