Package jakarta.persistence
Annotation Interface EnumeratedValue
Specifies that an annotated field of a Java
enum
type is the source of database column values for an
enumerated mapping. The annotated
field must be declared final, and must be of type:
byte,short, orintforEnumType.ORDINAL, orStringforEnumType.STRING.
Example:
- Since:
- 3.2
- See Also: