@Target(FIELD) @Retention(RUNTIME) public @interface Id
The marked field must be of type Name and must not be annotated Attribute.
Name
Attribute