Hi Luca, My comments, for what they are worth, in ascending order of importance:
1. In your two MyUser public static methods, it might be good practice to close the PersistenceManager instance before returning. 2. For the annotation for persistent entity classes, I use: @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true") Now, you do not have to do the detachable bit, but I do use the first part (identityType) (unlike in the GAE/J documentation examples) which you do not. 3. Try constructing your MyImage instance within the transaction. This may allow the enhancement magic to work better and the new MyImage instance to be persisted. Cheers, Ian On Apr 8, 10:07 am, Luca Matteis <[email protected]> wrote: > The MyUser entity: > > http://codepad.org/C2qRTTRt > > and the MyImage entity: > > http://codepad.org/xR6hhuU8 > > On Fri, Apr 8, 2011 at 11:00 AM, Simon Knott <[email protected]> wrote: > > Can you post the code for your MyUser and the MyImage classes as well? > > > -- > > 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. > > -- 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.
