Ok I’ve found that using Java models is a lot easier than the whole Scala Anorm stack. I want to use Java models with Scala controllers. Scala finds the methods I’ve written in the model but not the inherited methods like findById. I’ve read some documentation that talks about QueryOn.
Another that talks about.
import play.db.jpa.asScala
import models._
asScala[Tree].findAll
None of these seem to work for me. Thanks for any help.
You can use JPA with Scala, there is no need to do something “tricky”, simply extend Model and use the JPA annotations as if it was Java.