No. You need to do a (kindless) ancestor query and delete all entities found before you delete the parent "Test". If you know the child is only of one type you can do a normal ancestor query.
You could subclass the delete() method of the "Test" class to do this, but I don't know if it will work if you use db.delete( <list of keys or instances> ) 2010/10/6 Prashant <[email protected]>: > Hi, > Suppose, I have two types of Entities "Test" and "TestChild". For all > TestChild entities i have set key as child of some Test entity (because i > want both entities in same entity group to support transaction) but i > haven't mapped TestChild entity to any variable in Test entity. > Now, i am wondering if there is any way, such that, if i delete Test entity > then all corresponding child TestChild entitie(s) should also get deleted ? > -- > Prashant > www.claymus.com > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" 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?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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?hl=en.
