Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Kind and Entity in GAE datastore?

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

like image 992
user246160 Avatar asked Jun 09 '10 06:06

user246160


People also ask

What is an entity in Datastore?

Data objects in Datastore are known as entities. An entity has one or more named properties, each of which can have one or more values. Entities of the same kind do not need to have the same properties, and an entity's values for a given property do not all need to be of the same data type.

How do I add entities to Google Datastore?

In Java, you create a new entity by constructing an instance of class Entity , supplying the entity's kind as an argument to the Entity() constructor. After populating the entity's properties if necessary, you save it to the datastore by passing it as an argument to the DatastoreService. put() method.

What are properties of entity?

Attributes are properties of entities.

What kind of data model is used by Datastore?

Datastore is a NoSQL document database built for automatic scaling, high performance, and ease of application development.


1 Answers

An Entity is an individual record that gets stored and retrieved from the datastore.

The Kind is the unique string identifier of the type of entity.

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

like image 104
Nick Johnson Avatar answered Oct 16 '22 17:10

Nick Johnson