What is the difference between Kind and Entity in Google App Engine datastore?
2 Answers
8
votes
3
votes
'Kind' usually refers to simplified name of your entity class:
String kind = myEntity.getClass().getSimpleName();
But it might be whatever you set it to be. (If the persistence framework allows you to. I'd recommend Objectify BTW. :)
With Objectify you can define it like this:
@Entity(name = "MSSE")
class MySuperSmartEntity
{
}
Setting kind to something shorter than what is the class name might save you some serious space in datastore indexes.