I have a problem with the Scala tutorial for creating an Entity with the play framework (Version 2.1). I’m trying to do:
import java.util._
import javax.persistence._
import play.db.jpa._
But when I compile it tells me that javax.persistence dosen’t exist and play.db neither.
I suppose it’s a problem of version because it seems to me that the actual yabe-tutorial is a bit old. Do you know any website who has good explanations and examples?
Thanks for your help!
As you use Scala you could take a look at Slick which seems to be the future db persistence framework for Play and abandon the one in your tutorial.
Look in your Build.scala if you have
jdbcas a dependancy.Here’s my dependancies