Thanks for answering. With this list, how can I tell if a given entity of that kind has a parent or not?
Thanks, Brian On Thu, Dec 17, 2009 at 8:26 PM, m seleron <seler...@gmail.com> wrote: > Hi, > > If you specify kind if it is lowlevelapi > I think that it is possible to acquire list of entity > > How about the following examples? > > String kindName = "kindName"; // abandoned children kindname > > DatastoreService service = DatastoreServiceFactory.getDatastoreService > (); > Query query = new Query(kindName); > PreparedQuery pq = service.prepare(query); > List<Entity> list = pq.asList(FetchOptions.Builder.withOffset(0)); > > for (Entity e : list) { > e.getProperty("xx"); //get property > .... > } > > Please try . > thanks. > > On 12月17日, 午後1:56, Brian Hayward <bhayw...@gmail.com> wrote: >> So I read in the documentation that deleting parents via the admin >> console will create abandoned children because owned relationships are >> managed by JDO. Is there a query that can find abandoned children of >> a given kind? >> >> Thanks, >> Brian > > -- > > 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 google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > > -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.