Not related to JDO but... parent-child relationships are really simple to
define with Twig... you don't need to use keys at all.  Just use a
@Entity(Parent) annotation or @Entity(Child) or you could even simply
declare that any field named "parent" is automatically set to the parent
object.

http://code.google.com/p/twig-persist/

Its an option if you don't need your code to run on another platform

2009/11/2 datanucleus <[email protected]>

>
> No idea if GAE/J's plugin supports this extension property but we
> provide it in DataNucleus as a whole to only impose the "value
> strategy" for the field when it is null (i.e not already set by the
> user). Add this to the PK field that is being set
>
> @Extension(vendorName="datanucleus", key="strategy-when-notnull ",
> value="false")
> >
>

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