Hi all,

 I am trying to test persistence, with:
class Foo implements Serializable {
        @PrimaryKey
        @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
        private Key key;
}

When I  call makePersistent on an instance, the key value is created
as expected. If I add a field:
        @Persistent
        private List<Category> children
Then the key is still  null after the call to makePersistent. I can
see that in JDOStateManager, the creation of the pm is let to the
datastore, then a value of:
___entity_write_delayed___=<Entity [Category(no-id-yet)]
but it ends without an id being set.
What did I miss ?
--~--~---------~--~----~------------~-------~--~----~
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-java@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