Annotation Interface Enumerated


@Documented @Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface Enumerated
Specifies that a persistent property or field should be persisted as an enumerated type.

If the enumerated type is not specified or the Enumerated annotation is not used, the EnumType value is assumed to be STRING.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    (Optional) The type used in mapping an enum type.
  • Element Details

    • value

      EnumType value
      (Optional) The type used in mapping an enum type.
      Returns:
      Enum mapping type
      Default:
      STRING