Set an entity kind name different from a class name

丶灬走出姿态 提交于 2019-12-06 11:58:39

问题


Is there any way how to set a kind name different from a class name used in my Google App Engine?

I am using Java and JDO to access a datastore.


There a question about the similar issue in Python. It seems answered. Set a kind name independently of the model name (App Engine datastore)


回答1:


Ooops... It was quite easy to achieve:

@PersistenceCapable(table = "person")
public class PersonEntity {
    // ...
}


来源:https://stackoverflow.com/questions/7616158/set-an-entity-kind-name-different-from-a-class-name

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