Can you copy paste ur code here.may be then we can suggest something.

Sent from my BlackBerry® wireless device

-----Original Message-----
From: Amit Pandey <[email protected]>
Sender: [email protected]
Date: Tue, 14 Dec 2010 19:27:27 
To: <[email protected]>
Reply-To: [email protected]
Subject: Re: [appengine-java] Parent-Child relation if parent primary key
 isgenerated by Datastore

Thanks for response Ravi.

Actually It's owned relationship.

I followed your steps and then I tried to delete the parent object in
transaction, I got following exception-

"java.lang.IllegalArgumentException: can't operate on multiple entity groups
in a single transaction."

Ideally it should delete both parent and child table.

Thanks.

On Tue, Dec 14, 2010 at 7:12 PM, <[email protected]> wrote:

> If its owned relation u don't need to generate child key.it will be
> generated automatically.
> And if it is unowned then u can generate the child key in same way as u
> generated for parent.
>
> Sent from my BlackBerry® wireless device
> ------------------------------
> *From: * Amit Pandey <[email protected]>
> *Sender: * [email protected]
> *Date: *Tue, 14 Dec 2010 19:09:07 +0530
> *To: *<[email protected]>
> *ReplyTo: * [email protected]
> *Subject: *Re: [appengine-java] Parent-Child relation if parent primary
> key is generated by Datastore
>
> Is there any one who can address my problem.
>
> On Tue, Dec 14, 2010 at 12:59 PM, Amit Pandey <[email protected]> wrote:
>
>>
>> Hi,
>>
>> Is there any way to create parent child relation between two table if
>> parent table's primary key is Long and generated by Datastore.
>>
>> basically, I don't know how to create child class key if parent class key
>> is generated by datastore.
>>
>> Thanks,
>>  Amit
>>
>> --
>> 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.
>>
>
>  --
> 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.
>
> --
> 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.
>

-- 
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.


-- 
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.

Reply via email to