Package jakarta.persistence
Annotation Interface MapKeyEnumerated
Specifies the enum type for a map key whose basic type is an enumerated
type.
The MapKeyEnumerated
annotation can be applied to an element
collection or relationship of type Map
, in conjunction
with the ElementCollection
, OneToMany
, or ManyToMany
annotation. If the enumerated type is not specified or the
MapKeyEnumerated
annotation is not used, the enumerated type is
assumed to be ORDINAL
.
Example:
- Since:
- 2.0
- See Also:
-
Optional Element Summary
-
Element Details
-
value
EnumType value(Optional) The type used in mapping a map key enum type.- Default:
- ORDINAL
-