Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot import play.db.jpa.Model into my model

I cannot somehow import the play.db.jpa.Model lib into my Model, it can only find play.db.ebean.Model. Is there any way to import this?

thanks

like image 229
doniyor Avatar asked Jun 28 '12 18:06

doniyor


1 Answers

That is because play.db.jpa.Model is Play 1.x and play.db.ebean.Model is Play 2.x.

To use JPA in Play 2.x, see http://www.playframework.org/documentation/2.0/JavaJPA

like image 57
Codemwnci Avatar answered Oct 10 '22 03:10

Codemwnci