Difference between Kind and Entity in GAE repository?

What is the difference between Kind and Entity in the Google App Engine datastore?

+5
source share
2 answers

Entity is a separate record that is saved and retrieved from the data warehouse.

A view is a unique string identifier for an object type.

For example, "Joe" is Entity with age = 42, dob = 10-12-2000 and Kind "Person".

+8
source

"View" usually refers to the simplified name of your entity class:

String kind = myEntity.getClass().getSimpleName();

, . ( , Objectify BTW.:)
Objectify :

@Entity(name = "MSSE")
class MySuperSmartEntity
{
}

, , - .

+3

All Articles