javax.persistence
Annotation Type MapKeyClass
@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface MapKeyClass
The MapKeyClass annotation is used to specify the type of the map key for
associations of type java.util.Map. The map key can be a basic type, an
embeddable class, or an entity. If the map is specified using Java generics,
the MapKeyClass annotation and associated type need not be specified;
otherwise they must be specified.
- Since:
- Java Persistence 2.0
|
Required Element Summary |
java.lang.Class |
value
(Required) The type of the map key. |
value
public abstract java.lang.Class value
- (Required) The type of the map key.