I'm having a problem with iterating over child entities. Using low-level
API, I create a parent,
Key groupKey = KeyFactory.createKey("Group","root" );
Entity entity = new Entity(groupKey);
store.put(entity);
Now I successively add children to the group,
Entity groupChild = new Entity("G1", groupKey);
...
store.put(groupChild);
When I iterate using a query like so
Query query = new Query("G1");
PreparedQuery pq = store.prepare(query);
....
It works perfectly well, but I want to do a query on the parent like this,
Query query = new Query(groupKey);
PreparedQuery pq = store.prepare(query);
....
Unfortunately this rather than returning the children returns the group
entity itself.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine/-/wjK8Lc1393YJ.
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.