Hello,
In my application i have to implement a many2many (m:n)
relationionship in the datastore using JDO.
Well, this kind of relationship is realized in this way that each
entity holds a Set<Key> of the other entity, just like it is discussed
in this tutorial:

http://code.google.com/appengine/docs/java/datastore/relationships.html

My problem is: How could I store these entities in the datastore?
Example:
I have an entity named GROUP that holds several MEMBER entities. On
the other side a MEMBER entity holds several GROUP entities.
When it comes to test the datastoring i have to create a group entity
and feed in the relational member entities in the Set<Key> but a
"member" entity just gets an Key from JDO when it is already
persisted. And conversely: I have to feed the Set<Key> in the group
entity when i want to create a member entity....
Can anyone give me a quick code snippet on how i can store m:n
entities in the datastore?

greets....

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

Reply via email to