I have two objects Employee, Address. Each employee has a list of addresses init and also has a String status of current/retired/left/fired.Now I want to get a list of all my current employees who are Houston based.
Class Employee { @Persistent(mappedBy="employee") List<Address> addresses; String status; } Class Address { @Persistent private Employee employee; String address1; String city; String zip; } Query query = pm.newQuery(Employee.class, whereClause.toString()); List<Employee> empList = (List<Employee>) query.executeWithArray(paramValues.toArray()); When I set my status parameter to current, it will give me a list of current employees, how do i add the condition of "Houston" into my query so that I dont have to do the filter by myself. I feel that I am missing something. Appreciate you help. -- 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 google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.