|
Hello Ian, I tried changing the order of calls makePersistent. Now is: makePersistent(user); makePersistent(stat); but still the same problem. Thanks Ian Marshall wrote: Hello Patrizio, I do not think that my brain could cope with the generation of the encoded key myself. I would prefer to add the field like@Persistent @Extension(vendorName="datanucleus", key="gae.pk-name", value="true") private String keyName; and set that instead with a class-unique String, leaving encodedKey null. This would let GAE/J do the work of ensuring that each encodedKey is unique in BigTable! User is the entity parent of Stat, and you set this relationship at the parental side. Your code, I think, persists Stat before you have set the relationship at the child side. So you are persisting Stat with no entity group parent before you persist User. Try to persist User first before persisting Stat. Since you have already set the User's Stat, this might work... :) Regards, Ian --
Patrizio Munzi --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~--- |
- [appengine-java] Seeing different (incorrect?) JDO behavior... David
- [appengine-java] Re: Seeing different (incorrect?) JDO... Max Ross
- [appengine-java] Re: Seeing different (incorrect?) JDO... Jason (Google)
- [appengine-java] Re: Seeing different (incorrect?)... bysse
- [appengine-java] Re: Seeing different (incorre... Jason (Google)
- [appengine-java] Re: Seeing different (inc... patrizio.munzi
- [appengine-java] Re: Seeing different... Patrizio Munzi
- [appengine-java] Re: Seeing diffe... Ian Marshall
- [appengine-java] Re: Seeing d... Patrizio Munzi
- [appengine-java] Re: Seeing d... Ian Marshall
- [appengine-java] Re: Seeing d... Patrizio Munzi
- [appengine-java] Re: Seeing diffe... Marton Papp
