Annotation Interface Id


@Retention(RUNTIME) @Target(FIELD) public @interface Id
Marks a field as id field. The value of this field will be used as id in a DataStore. The field must be of type String. Only one field in a class can be annotated with this annotation.
Please note that this annotation is not compatible with stores using auto-incrementing ids (stores for QueryableType with IdGenerator.AUTO_INCREMENT) option. If you want to use auto-incrementing, do not annotate any field with this annotation.