for example: parent class is Classroom and clid class is Student; this
is one to many owned relationship.
if I need find all the students under classroom 101, can I query in
below way?
query = pm.newQuery(Student.class);
query.setFilter("student.getClassroom().getClassroomName() ==
classroomParam");
query.declareParameters("String classroomParam);
List<Student> students = (List<Student>) query.execute("101");
I know you can query classroom first and then get the students but if
you have 5 layer relationships,it will be much easiler if we can query
the child class based on parent class's property. Thanks in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---