November 17

Play Framework 2: Ebean vs. JPA

5  comments

Everytime you start a new project, you should carefully think about the libraries and dependencies you going to use for your project. This prevents you from building on libraries which will be deprecated in the near future.

In Play Framework 2.3 Ebean will be replaced with JPA. Here is a discussion in the forum about the topic.

The switch is also mentioned in the play roadmap and on Github.

Ebean looks really nice and has some nice features, but when you read some discussions it looks like ebean is mostly unsupported by the original developers, and has some nasty bugs.

JPA implementations like hibernate have bugs as well. But in the end even the nasty ones like HHH-2763, finally get fixed. JPA knowledge is also widely spread in the Java world. If you run into a problem, the chance to get help on stackoverflow or by a coworker is much higher.

For me this means, the big client Play Framework 2 project starting these days, will be based on JPA not Ebean.

The only problem with this approach is that the JPA implementation in play 2 is kind of basic. So we have some work in front of us to make jpa for play more like the ebean implementation or the jpa implementation in play 1.

In the future I will share some of the problems we run into and the solutions we find.


Tags

Ebean, Java, JPA, Play Framework, Play Framework 2.3, Play4JPA


You may also like

Blog url changed to https

Format date and time in java with prettytime

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. This didn’t seem to happen. Looking at documentation for Play 2.3.x it still uses EBean as default. Am I missing something? Can you update your post to reflect the current state of direction for JPA in Play Java? Thanks.

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

Subscribe to our newsletter now!