Looks like you're trying to store something like:

class Announce {
  Long id;
  User user;
}

class User {
  Key id;
  Type type;
}

So you store User first and then try to create a new Announce with
that stored user set in Announce.user.

You can't do that.  You can't change the parent of an entity once it's
stored.  You have Announce->User as an owned relationship.  If you
want to store the User first and then reference it from Announce,
you'll need that class to look more like:

class Announce {
  Long id;
  Key userId;
}

The Google documentation covers relationships.

On Aug 25, 4:03 am, midomarocain <[email protected]> wrote:
> any help please
--~--~---------~--~----~------------~-------~--~----~
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