Dears,
Please try to replace your code with following code and try.
* @PrimaryKey*
* @Persistent*
* private Key contextKey;*
*
*
And persist your object to store by following way.
(User is an Pojo in my application)
Key key=KeyFactory.createKey(User.class.getSimpleName(), user.getUid());
user.setKey(key); // you should provide a set mothod to set the Key to
your filed.
pm.makePersistent(user);
Bevis.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine/-/7dRRh-sau9gJ.
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?hl=en.