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 in each TestChild entity so
that both Test and TestEntity come into same entity group. The problem here
is that cascade delete doesn't work now.
On 6 October 2010 16:28, Didier Durand <[email protected]> wrote:
> 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 <[email protected]> wrote:
> > 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
> ?
> >
> > --
> > Prashantwww.claymus.com
>
> --
> 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]<google-appengine-java%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>
--
Prashant
www.claymus.com
--
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.