@Retention(value=RUNTIME) @Target(value=TYPE) public @interface Entity
EntityManager
to save objects to the Cloud Datastore
and load objects from the Cloud Datastore.
Classes annotated with this annotation must adhere to the following rules:
Identifier
annotation.long
, Long
or String
.
Ignore
annotation.Key
annotation which will
hold the full key to the entity.Key
must have a data type of
DatastoreKey
.ParentKey
annotation which
will hold the full key to the parent entity.ParentKey
must have a data type of
DatastoreKey
.Embedded
.
Mapper
exists. The framework provides Mappers for various commonly used types.
CustomMappers can be specified using
MapperFactory.setDefaultMapper(java.lang.reflect.Type, Mapper)
or
PropertyMapper
annotation.public abstract String kind
Copyright © 2016. All rights reserved.