Hi, I am trying to see if below schema is possible in JDO. I read the
relationship documentation below but I was not sure if this schema
(Owned many-to-one ?) is possible. I'd appreciate your expert advise.
http://code.google.com/intl/en/appengine/docs/java/datastore/relationships.html

Example:

Child {
    Key key;
}

ParentA {
    Child child;
}

ParentB {
    Child child;
}

And do this:
Child c = new Child();
ParentA a = new ParentA();
ParentB b = new ParentB();
a.setChild(c);

Eventually I want to load "a" object with object "c" automatically
fetched. Can I do it like this?

Parent A {
    @Persistent(defaultFetchGroup = "true")
     Child child;
}

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to