Annotation Type Id
-
@Retention(RUNTIME) @Target(FIELD) public @interface Id
Annotate a class field with this annotation to use that field's value instead of the automatically-generated id for object references in JSON output. The field value must be a unique identifier across the whole object graph.