java - What is the JDO equivalent of datastore's query.setAncestor(Key key)? -
i have been looking everywhere trying figure out jdo equivalent of google app engine's low-level api function: .setancestor(key key)
is. have not been able find anywhere! i've read type of behavior not supported in native jdo. true? can't this?
i don't think supported natively, can use query:
pm.newquery("select myelement myparent == :parent");
note little different, though, low-level api setancestor search all descendants. , have establish one-to-one or one-to-many relationship via jdo.
see: http://groups.google.com/group/google-appengine-java/browse_thread/thread/b07c62030e7bbcb8
Comments
Post a Comment