Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Play! framework - ORM

From the Play! framework docs:

There is no built-in JPA implementation in Play 2.0; you can choose any available implementation. For example, to use Hibernate, just add the dependency to your project:

  • What are my option rather than Hibernate?
  • What do you think is well-suited for a message-board website?
  • I understood Hibernate has a little overhead, is that right?
like image 990
socksocket Avatar asked Dec 26 '22 20:12

socksocket


2 Answers

There is Ebean ORM built-in the Play 2.0 doesn't it meet your needs?

All you need to start working with it is just uncoment few lines in application.conf, check this description for MySQL: https://stackoverflow.com/a/10007515/1066240

like image 87
biesior Avatar answered Dec 30 '22 10:12

biesior


There is also squeryl http://squeryl.org/. Here is a nice tutorial on getting started: http://www.artima.com/articles/play2_scala_squeryl.html

like image 23
harish_chan Avatar answered Dec 30 '22 09:12

harish_chan