[appengine-java] Ancestor query

2011-05-10 Thread pavb
Hi I am using objectify in my appengine application and I have problems with my ancestor queries My model is designed as follow: class A { public B getB() { return Ofy.getOfy().get().query(B.class).ancestor(this).get(); } public C getC() { return Ofy.getOfy().get().query(C.class).ancestor

[appengine-java] ancestor query does not work on development server

2009-09-24 Thread Yasuo Higa
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