Hi Everyone ,

  I am getting an error when tried to persist my class using the JPA.
I am about to persist my child model . here is the snippet that
generates the error,

        @Id
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        @Extension(vendorName="datanucleus", key="gae.encoded-pk",
value="true")
        private String personId;

I have tried key as well,

        @Id
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        private Key personaId;

I am getting the following error when tried to persist the object of
the above class.

    Invalid Key PB: no elements.
Caused by:

java.lang.IllegalArgumentException: Invalid Key PB: no elements.
        at
com.google.appengine.api.datastore.KeyTranslator.createFromPb(KeyTranslator.java:
26)
        at
com.google.appengine.api.datastore.KeyFactory.stringToKey(KeyFactory.java:
197)


Can anyone kindly help me to get out of this problem ?

Thanks,
Pradeep.

-- 
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-java@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.

Reply via email to