-
@Target(FIELD) @Retention(RUNTIME) public @interface EnumeratedValueSpecifies that an annotated field of a Javaenumtype is the source of database column values for an enumerated mapping. The annotated field must be declaredfinal, and must be of type:byte,short, orintforEnumType.ORDINAL, orStringforEnumType.STRING.
Example: {@snippet : enum Status { OPEN(0), CLOSED(1), CANCELLED(-1);
- Since:
- 3.2
- See Also:
Enumerated,EnumType