I have never thought of that and never tried it , of course i should have a try.... but i have seen that in gae java doc:\
Unencoded String A string (java.lang.String), an entity ID ("key name") provided by the application when the object is created. Use this for objects without entity group parents whose IDs should be provided by the application. The application sets this field to the desired ID prior to saving. import javax.jdo.annotations.PrimaryKey; // ... @PrimaryKey private String name; On Mar 11, 4:44 am, Ian Marshall <ianmarshall...@gmail.com> wrote: > Instead of > > @PrimaryKey > private String key; > > have you tried > > @PrimaryKey > @Persistent > private String key; > > ? > > Since I use keys as encoded strings (instead of unencoded string > keys), I personally use > > @PrimaryKey > @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) > @Extension(vendorName="datanucleus", key="gae.encoded-pk", > value="true") > private String sEncodedKey; -- 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-j...@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.