javax.persistence
Annotation Type MapKeyTemporal
@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface MapKeyTemporal
The MapKeyTemporal annotation is used to specify the temporal type for a map key whose basic type is a temporal type. The
MapKeyTemporal annotation can be applied to an element collection or relationship of type java.util.Map, in conjunction with
the ElementCollection, OneToMany, or ManyToMany annotation. If the map is specified using Java generics, the MapKeyClass
annotation and associated type need not be specified; otherwise they must be specified.
- Since:
- JPA 2.0 version.
- Author:
- Florent Benoit
- See Also:
- JPA 2.0 specification
|
Required Element Summary |
TemporalType |
value
(Required) The type used in mapping java.util.Date or java.util.Calendar. |
value
public abstract TemporalType value
- (Required) The type used in mapping java.util.Date or java.util.Calendar.
Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.