Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does Play Framework 1 use for ORM Implementation?

what ORM does Play Framework version 1 use? From what I read from the site, it mentions JPA, when I search JPA I couldn't find the download site for the ORM framework. CMIIW, JPA seems to be a feature from Java and not a ready to use ORM framework.

does Play uses Hibernate? If yes, how could I create the model class in Java and the table in the database is automatically created? How do I use the .find() method in Hibernate?

Thank you.

like image 306
gidoy nyemot Avatar asked Sep 24 '26 19:09

gidoy nyemot


1 Answers

Play Framework 1.x uses Hibernate. You extend Play's Model support class, mark your objects with necessary annotations, and Play takes care of the rest. Take a look at Play documentation, for example chapter Persist your object model with Hibernate or JPA persistence: Finding objects - those should answer your questions.

like image 121
Tommi Avatar answered Sep 26 '26 15:09

Tommi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!