I\'m using Ebean with the Play 2 Framework and got two models: a user model and a book model. The user model is connected with the book model in a OneToMany Relationship. So
List users = User.find.select("*") .fetch("books") .where() .eq("t1.condition", "new") .findList();
For me, it works only when I use "t1.", I am using Postgres DB. The generated query makes sense with t1.