Set an entity kind name different from a class nam

2019-04-14 18:01发布

问题:

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 {
    // ...
}