I read that Objectify is a supported framework for use with Endpoints.
How do I convert the sample from the GPE App Engine Connected Android Project wizard to deal with Objectify 4 data?
I'm getting this:
org.datanucleus.exceptions.ClassNotPersistableException: The class "com.example.MyObjectifyTestInfo" is not persistable. This means that it either hasnt been enhanced, or that the enhanced version of the file is not in the CLASSPATH (or is hidden by an unenhanced version), or the Meta-Data/annotations for the class are not found.
I have searched a lot, but found nothing in stackoverflow or elsewhere.
Thanks.
datanucleus (as in org.datanucleus...) is the JDO/JPA library, so that message indicates that you still have JDO/JPA artificacts in your project. The message is correct - now that you are using objectify your class is not persistable using datanucleus, so what is still trying?
I would suggest that you review your project settings and your class file's import statements to make sure you've removed all JDO/JPA.
来源:https://stackoverflow.com/questions/20938434/objectify-with-endpoints-for-android