设置一个与类名不同的实体类名称 [英] Set an entity kind name different from a class name
本文介绍了设置一个与类名不同的实体类名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有什么方法可以设置一个不同于我的Google App Engine中使用的类名的类名?
我使用Java和JDO来访问数据存储区。
对Python中类似的问题有个疑问。它似乎回答。 设置一个与模型无关的名称名称(App Engine数据存储)
解决方案
Ooops ...这很容易实现:
@PersistenceCapable(table =person)
public class PersonEntity {
// ...
}
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)
解决方案
Ooops... It was quite easy to achieve:
@PersistenceCapable(table = "person")
public class PersonEntity {
// ...
}
这篇关于设置一个与类名不同的实体类名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文