Package javax.persistence
Annotation Type MapKeyTemporal
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface MapKeyTemporalThis annotation must be specified for persistent map keys of typeDateandCalendar. It may only be specified for map keys of these types.The
MapKeyTemporalannotation can be applied to an element collection or relationship of typejava.util.Mapin conjunction with theElementCollection,OneToMany, orManyToManyannotation.Example: @OneToMany @MapKeyTemporal(DATE) protected java.util.Map<java.util.Date, Employee> employees;- Since:
- 2.0
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description TemporalTypevalue(Required) The type used in mappingjava.util.Dateorjava.util.Calendar.
-
-
-
Element Detail
-
value
TemporalType value
(Required) The type used in mappingjava.util.Dateorjava.util.Calendar.
-
-