Hi all,

I'm experiencing some problems using "gae.encoded-pk" on MySQL.

Reading the documentation (http://code.google.com/intl/en/appengine/
docs/java/datastore/creatinggettinganddeletingdata.html) I found that:

"Encoded string keys allow you to write your application in a portable
manner..."

but I can't find any information on how to achieve this. Consider this
sample code from the docs:

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    @Extension(vendorName="datanucleus", key="gae.encoded-pk",
value="true")
    private String encodedKey;

This will work on appengine, but if used on an alternative stack of
DataNucleus + MySQL, then it won't work (the automatic schema tool
ignored the extension, and attempts to create a varchar column with an
AUTO_INCREMENT attribute, which makes no sense).

Does anybody know how to achieve the desired behaviour?

Many thanks in advance!!

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

Reply via email to