I'm using the PlayFramework and I'm really liking it. When I want to grab data from a table, for example I have a user
table, I use the following syntax:
List<User> users = User.find.where().eq("email", email).findList();
My question is that when I get the user object, I have an id
column. With that id
value I can map to other tables and the id
's of those tables can be mapped to even more tables, so basic concept of joining across several tables. Is there any example or place I can read where it describes how to implement that with the above-like syntax?
I tried to find myself and couldn't, only way I can think of it at this point is to use straight sql with prepared statements which I'd rather not do.
myId
and that maps to a columnid
in another table, is there a way to specify that? – Fallonfallout