JPA Enum

EnumType

java.lang.Object
  ∟ java.lang.Enum<jakarta.persistence.EnumType>
    ∟ jakarta.persistence.EnumType

Enumerates available options for mapping enumerated types. The values of this enumeration specify how a persistent property or field whose type is a Java enum type should be persisted.
See Also:
Enumerated
EnumeratedValue
Since:
JPA 1.0
The JPA Persistable Types article explains how to use EnumType.

Enum Constants

Persist enumerated type property or field as an integer.
The ordinal value of an enum instance with no EnumeratedValue field is the value of its Enum member.
Since:
JPA 1.0
Persist enumerated type property or field as a string.
The string value of an enum instance with no EnumeratedValue field is the value of its Enum member.
Since:
JPA 1.0

Public Static Enum Methods:

Method inherited from class java.lang.Enum

compareTo, compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

Method inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait