java.util.Date and java.util.Calendar . It may only
be specified for map keys of these types.
The MapKeyTemporal annotation can be applied to an
element collection or relationship of type java.
in conjunction with the ElementCollection, OneToMany,
or ManyToMany annotation.
Example:
@OneToMany
@MapKeyTemporal(DATE)
protected Map<java.util.Date, Employee> employees;
| Modifier and Type | Method and Description |
|---|---|
| public TemporalType | value()
References Deprecated
TemporalType is deprecated or references (maybe indirectly) at least one deprecated element.
(Required) The type used in mapping
|
| value | back to summary |
|---|---|
| public TemporalType value()
References Deprecated
See corresponding docs for further information. (Required) The type used in mapping
| |