Hi all,
I am trying the following ancestor query:
DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
Key parentKey = ds.put(new Entity("parent"));
Entity child1 = new Entity("child", parentKey);
child1.setProperty("name", "child1");
Key child1Key = ds.put(child1);
Entity child2 = new Entity("child", parentKey);
child2.setProperty("name", "child2");
Key child2Key = ds.put(child2);
System.out.println(ds.prepare(new Query(parentKey)).countEntities());
ds.delete(parentKey, child1Key, child2Key);
The above ancestor query works fine(the count of entities is 3) on
production server,
but it does not work(the count of entities is 0) on development server.
I use App Engine SDK 1.2.5.
Thanks,
Yasuo Higa
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---