If I understand things correctly, it seems to me that a class would have a field
@Persistent(defaultFetchGroup = "true") List<Key> myClassKeys; // keys are from MyClass objects instead of @Persistent(defaultFetchGroup = "true") List<MyClass> list; because in the latter case, when an object is added to the List, it's parented to the enclosing object. In the case of the List of Key, no parenting happens so you can add keys for objects that are already parented or at the root level. Why can't you create an annotation parameter or new annotation so that we can use the latter form, and the annotation specifies that the objects' parenting remains unchanged? So under the hood it behaves like the former List of Key, but it provides a cleaner interface like the latter.
-- 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.
