I’m getting started with Play 2.0 by following along with the tutorial. I’m hitting an early roadblock though. When I try play test, I’m hitting a compiler error:
[error] /Users/spoletto/Desktop/historical/kleio/app/models/Student.java:9: cannot find symbol
[error] symbol : class Model
[error] location: package play.db.jpa
[error] public class Student extends play.db.jpa.Model {
Likewise, in Eclipse, it’s not finding the Model class (though it is finding the play.db.jpa package). I know I’m probably missing something really basic, but I’m stumped. Any help would be much appreciated.
Looks like you need play.db.ebean.Model
So I found checking the api docs for Java and Scala really helpful with migrating to 2.0. A lot of the apis have changed and moved around. I always forget the links, but they are conveniently found at the docs Browse APIs button