I am just learning JDO and GAE, and have gotten myself very stuck on
this.

I have gone from having just

public class Article {
   ...
}

To now also having a parent:

public class ArticleCollection {
    private long count
    private Set<Article> articles;
}

However after doing this, the following code to fetch an article by id
no longer works. How do I uniquely identify an object?
        Article article =
(Article)pm.getObjectById(KeyFactory.createKey(Article.class.getName(),
id));

Any help much appreciated!

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