What is the problem of traversing the Leave objects, harvest all the unique parent keys and retrieve them in a second query.
In Python: leaves = someQuery.fetch(1000) parentKeys=set( [ k.key() for k in leaves ] ) parents = db.get(list(parentKeys)) 2011/3/3 andy <[email protected]>: > I have Employee and Leave Transactions Details entities in one to many > relation when i execute a query against Employee(parent) i am getting > the result of employee and its responding leave transaction but if i > need the information based on child properties (like 'Status' if > Status is "Applied" ) then only retrieve the specific properties > (rather than all details) of employee and leave transaction details. > what you have suggested is right but using that i only get the > child information but i want to include the parent also. > one more can include more than one entity in query, like joining two > tables/entity > -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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?hl=en.
