@Target(value=METHOD) @Retention(value=RUNTIME) public @interface Enumerated
This annotation only has effect when used in conjunction with the
Entity columns storing enumerated types (i.e. Java Enum) are persisted differently to all other types. This annotation can be used to control the way the enumerated value is persisted in the data storage.
If this annotation is omitted for the column which stores
Enum type, it is still
considered enumerated, and is assumed to be of the ordinal enum