Hi Brent,

This is an annoying limitation of how one-to-many relationships are
currently implemented.  There is a bug filed for it here:
http://code.google.com/p/datanucleus-appengine/issues/detail?id=80

I'm hoping to get this issue resolved pretty soon.

Sorry for the trouble,
Max



On Tue, Dec 1, 2009 at 9:45 AM, Brent <[email protected]> wrote:

> I'm just beginning with GAE, and although I've programmed in Java
> before, I'm a little rusty.  I'm trying to create a bookmark manager
> application.
>
> I have two objects, a Category object and a Bookmark object.  I want
> the Category object to be able to store multiple sub-categories as
> well as multiple bookmarks:
>
> --snip--
> @PersistenceCapable(identityType = IdentityType.APPLICATION)
> public class Category
> {
>        @PrimaryKey
>        @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
>        private Key CategoryId;
>
>        @Persistent
>        private String _Title;
>
>        @Persistent
>        private List<Category> _Categories;
>
>        @Persistent
>        private List<Bookmark> _Bookmarks;
>
> --snip all the public methods, etc--
>
>
> However, when I try to store a new category into the datastore, it
> stores nothing.  When I remove the List<Category> property, it stores
> fine.  Is there something I'm doing wrong with regards to an object
> being a child of itself?
>
> I've tried to search for this, but haven't been able to find anything.
>
> Thanks.
>
> Brent
>
> --
>
> 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]<google-appengine-java%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>
>

--

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