Specifies how an enum should be mapped when reading or writing to a column.
By default, enums are mapped using their Enum.name() value. Use @DbEnum(EnumType.ORDINAL)
to explicitly indicate that the enum's ordinal value should be used instead.
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
EnumType valueThe enum mapping strategy to apply.- Returns:
- the enum type strategy
- Default:
NAME
-