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(this).get();
}
}
class B {
@Parent
private A a;
public C getC() {
return Ofy.getOfy().get().query(C.class).ancestor(this).get();
}
}
class C {
@Parent
private B b;
}
Only the getB() method of the class A works and returns the entity B.
All the others return null and I don't understand why?
Could you help me please?
Thanks
PA
--
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.