Best ORM framework to use with Play

4,325 views
Skip to first unread message

viiveek sankar

unread,
Feb 8, 2014, 4:28:20 PM2/8/14
to play-fr...@googlegroups.com
Hi,
 I am building an application with  play framework . I am debating whether to use ebean or hibernate as the orm layer. I heard ebean support would be discontinued. Does any body have any recommendations 



Kate von Roeder

unread,
Feb 8, 2014, 4:29:27 PM2/8/14
to play-fr...@googlegroups.com
If you're using Scala, I strongly recommend Slick -
http://slick.typesafe.com/

I can't speak to a good ORM for the Java side of Play, though.
> --
> You received this message because you are subscribed to the Google
> Groups "play-framework" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to play-framewor...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

viiveek sankar

unread,
Feb 8, 2014, 4:38:34 PM2/8/14
to play-fr...@googlegroups.com
I am using java for play 

HHeinz

unread,
Feb 8, 2014, 7:04:19 PM2/8/14
to play-fr...@googlegroups.com
Hello viiveek, 

Afaik Ebean is not going to be discontinued yet but Play Framework 2.3 Java is going to use JPA as the default (but if I understood correctly Ebean should still work). 
Ebean recently got a bit more activity and a major release to be expected in March. I do like the concept of Ebean and it works
quite well for my small projects but many seem to have problems with it.
James Roper from Typesafe wrote a statement last year, see Play Framework 2.3 Roadmap
Have a nice week-end.
 
Henning

Kevin Sheppard

unread,
Feb 8, 2014, 7:41:27 PM2/8/14
to play-fr...@googlegroups.com
I stick to using whatever ORM is bundled into Play. It will save you potential headaches due to unforeseen breakages when whenever Play updates.

Niklas Nylund

unread,
Feb 9, 2014, 3:33:35 AM2/9/14
to play-fr...@googlegroups.com
We are happy with Ebean and I would recommend it. Most of the problems we have had seems to actually be in BoneCP and it looks like we will see a fix for these in 2.2.2.


Niklas

J. O. Meyer

unread,
Feb 9, 2014, 3:35:16 PM2/9/14
to play-fr...@googlegroups.com
I use Hibernate and prefer it to EBean. It is quite mature and HQL gives you a lot of flexibility.
I recommend not to bloat your entity bean with business logic. Use the DAO pattern for a clear separation of concerns.

viiveek sankar

unread,
Feb 9, 2014, 5:01:42 PM2/9/14
to play-fr...@googlegroups.com
Thank you. I was also hoping to use hibernate. Is it necessary to use annotation based hibernate can i still use xml based mapping

J. O. Meyer

unread,
Feb 9, 2014, 5:19:54 PM2/9/14
to play-fr...@googlegroups.com
I use JPA and am satisfied with it. Haven't tried XML mapping myself yet.

sachin walia

unread,
Feb 12, 2014, 12:33:46 AM2/12/14
to play-fr...@googlegroups.com
I don't use an ORM and don't recommend one. Once you start using ORM and later on realize performance issues it is hard to go back. For Java there are better options such as JOOQ, ActiveJDBC, QueryDSL, JDBI, sql2o. They help you avoid writing same JDBC code again and again.

Mathias Bogaert

unread,
Feb 12, 2014, 3:46:44 AM2/12/14
to play-fr...@googlegroups.com

Allen

unread,
Feb 12, 2014, 9:45:02 AM2/12/14
to play-fr...@googlegroups.com
HI,

I would recommend the Apache Cayenne ORM (https://cayenne.apache.org). 
Very mature, easy to use, includes a Model Editor.

We did wrote a play 1.2 plugin for it. 

Example project:

A play 2.x plugin is in progress…

Best,
Allen

David Weinberg

unread,
Feb 15, 2014, 3:02:03 AM2/15/14
to play-fr...@googlegroups.com
I have a sample play project using Scala and Hibernate with some macros for convenience.  https://github.com/thymepuns/computer-database-shib


On Saturday, February 8, 2014 1:28:20 PM UTC-8, viiveek sankar wrote:

sBham

unread,
Nov 17, 2014, 8:13:23 AM11/17/14
to play-fr...@googlegroups.com

Can you please expand on what non-ORM you are using in production. I am just getting to discover Play (Java), but we do not do any orm: we use jDBI across all of you projects, I just want to know what "magic" will break out if we do not go through the bundled orm !?

Łukasz Śliwiński

unread,
Nov 18, 2014, 10:01:09 AM11/18/14
to play-fr...@googlegroups.com
I also do not recommend to use heavy ORM framework. You can find a lot of info about that on the net. Personally I like using SQL - it is native language for Database and created for this purpose. I don't need overlay like Hibernate and it's magic that is going inside. Havy ORM like Hibernate can be sequent element in your daily code that gives you big headaches.
Of course in java it is little unpleasant to write code using JDBC. But you can find a lot of "light" orm.

I used with play! JDBI and OrmLight with great success.
But like others say you can select another
Example:

I recommend OrmLight, for my purposes using it is straightforward.

K.N S

unread,
May 28, 2015, 1:38:41 PM5/28/15
to play-fr...@googlegroups.com
hello 
     i am using play framework newly. im not getting. can u help me. how to start a project.

sunnykaka

unread,
May 28, 2015, 10:34:28 PM5/28/15
to play-fr...@googlegroups.com
I'm using JPA and Hibernate now.
If you are using Play for Scala, I recommand Slick, otherwise Hibernate would be nice.
Reply all
Reply to author
Forward
0 new messages