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.
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.
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.
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
Parameters:
name - the name of the enum constant to be returned.