Annotation Interface Id


@Retention(RUNTIME) @Target({PARAMETER,FIELD,METHOD}) public @interface Id
Marks a field as a ID Scalar Type.
Note that this annotation may only be placed on String fields/getters/setters/parameters. A deployment error should result if it is placed on a field/getter/setter/parameter of a different type.

For example, a user might annotate a method's parameter as such:
 public class Person {
      @Id
      private String id;
      private String name;
      private String surname;
 
      // Getters and Setters
 }