Objectify with Endpoints for android

心不动则不痛 提交于 2019-12-01 11:39:00

问题


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.


回答1:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!