Have you looked at the Google App Engine for Java persistence blog at

  http://gae-java-persistence.blogspot.com

You should find some excellent JDO and JPA working examples here. I
have found these very beneficial for me.

There are other persistence interfaces available for GAE/J as well as
JDO and JPA: Twig, Objectify, .... If you haven't yet chosen your
persistence interface, time spent choosing wisely will be an
investment which should pay off handsomely.


On Mar 7, 8:03 pm, mscwd01 <mscw...@gmail.com> wrote:
> Pardon my ignorance, I have read the docs over and over and this still
> alludes me.
>
> I have two objects, lets call them "User" and "Skill". When a person
> signs up to my site they are saved as a "User". A user may have
> multiple skills, these are stored as a list within the User object,
> e.g.
>
> @Persistent @Element(dependent = "true")
> private List<Skill> skills;
>
> Now what I need to determine is how to add a Skill object to the User
> entity group when I create it, as I need to modify both objects within
> a single transaction.
>
> When I create Skill objects do I have to supply the User key to the
> new Skill object somehow?
>
> I'd appreciate any help I can get with this, thanks!

-- 
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 google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to