Top Description Fields Constructors Methods
jakarta.persistence

public final Enum EnumType

extends Enum<EnumType>
Class Inheritance

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.
Since
1.0
See Also
Enumerated, EnumeratedValue

Field Summary

Modifier and TypeField and Description
public static final EnumType
ORDINAL

Persist enumerated type property or field as an integer.

public static final EnumType
STRING

Persist enumerated type property or field as a string.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static EnumType
public static EnumType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ORDINALback to summary
public static final EnumType ORDINAL

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#ordinal() member.

STRINGback to summary
public static final EnumType STRING

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#name() member.

Constructor Detail

EnumTypeback to summary
private EnumType()

Method Detail

valueOfback to summary
public static EnumType valueOf(String name)
valuesback to summary
public static EnumType[] values()