3 ms·
You can of course use whatever ORM you want, but it comes with Anorm.
by jaytaylor 14y ago
You can of course use whatever ORM you want, but it comes with Anorm.
- jiggy2011 14y agoCan Play 2 be made to work well with hibernate+JPA? I know many people don't like it , but I invested a fair amount of time into understanding hibernate and if I stick with the JVM I would want to be able to apply that.
- mark242 14y agoYes, it will work. There's no magic sauce about adding whichever ORM you want; just declare it as a dependency in your build file and you're ready to go.
- jiggy2011 14y agoThanks, is there anything "weird" about it though? For example: I remember in play 1.x various helper method were provided that were different from those in standard JPA including something that felt like properties in ruby. Not really a problem in practice, but required a litte trial and error when compared with the hibernate docs. However I imagine Play 2 makes use of various dynamic style programming techniques (via Scala) that might make hibernate behave in subtly different ways to what the hibernate literature might lead you to believe? I appreciate that this is an extremely hand-wavey question.