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:
- JPA 2.0 version.
- Author:
- Florent Benoit
- See Also:
- JPA 2.0 specification
|
Required Element Summary |
Class |
value
(Required) The type of the map key. |
value
public abstract Class value
- (Required) The type of the map key.
Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.