Annotation Type Id


@Retention(RUNTIME) @Target(FIELD) public @interface Id

Place this annotation on a single Long, long, or String field of an entity POJO. This field defines the id of the entity, which is one part of the key. The entity itself is uniquely identified by its (optional) parent, kind (typically the class), and the id.

If your entity has a @Parent, the id will not be globally unique! Ids are only unique for a particular parent (and kind).

Author:
Jeff Schnitzer invalid input: '<'[email protected]>