Aleksejs Mjaliks
Aleksejs Mjaliks

Reputation: 8707

Set an entity kind name different from a class name

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)

Upvotes: 2

Views: 150

Answers (1)

Aleksejs Mjaliks
Aleksejs Mjaliks

Reputation: 8707

Ooops... It was quite easy to achieve:

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

Upvotes: 2

Related Questions