[appengine-java] Re: Easy way to delete unowned (child) entities in same entity group ?

2010-10-06 Thread Didier Durand
Hi Prashant, dependent entities are deleted when parent is: see http://code.google.com/appengine/docs/java/datastore/relationships.html#Dependent_Children_and_Cascading_Deletes didier On Oct 6, 11:23 am, Prashant wrote: > Hi, > > Suppose, I have two types of Entities "Test" and "TestChild". For

[appengine-java] Re: Easy way to delete unowned (child) entities in same entity group ?

2010-10-06 Thread Didier Durand
You have a partial response at the end of the link:" The JDO implementation does the work to delete dependent child objects, not the datastore. If you delete a parent entity using the low-level API or the Admin Console, the related child objects will not be deleted." So, I you play with entities o

Re: [appengine-java] Re: Easy way to delete unowned (child) entities in same entity group ?

2010-10-06 Thread Prashant
Hi didier, I wanted to say that I don't want to make an owned relationship, i.e. I am not using any field to list TestChild entites in Test class as given in the example : @Persistent @Element(dependent = "true") private List childs; The only thing I am doing is to set parent key i