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