Hi everybody,

I'm struggling with a strange problem with JDO.
I've got two PersistenCapable classes, one having a Collection of
objects of the second, something like this:

class First {
 @Persistent
 @PrimaryKey
 Long id;

 @Persistent(mappedby="owner")
 ArrayList<Second> list = new ArrayList<Second>();

 ArrayList<Second> getList() {
  if (list == null)

 }
...
}

class Second {
 @Persistent
 @PrimaryKey
 Key id;

 @Persistent
 First owner;

 ...
}


In another class I need to print the owner of all my First objects, so
I do:
First obj = ...;
ArrayList<Second> list = obj.getList();

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