Top Description Fields Constructors Methods
javax.persistence

public final Enum EnumType

extends Enum<EnumType>
Class Inheritance

Defines mapping for enumerated types. The constants of this enumerated type specify how a persistent property or field of an enumerated type should be persisted.
Since
Java Persistence 1.0

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.

STRINGback to summary
public static final EnumType STRING

Persist enumerated type property or field as a string.

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()