MapKeyJoinColumns
Target: METHOD, FIELD
- Implemented Interfaces:
Annotation
Supports composite map keys that reference entities.
The MapKeyJoinColumns annotation groups MapKeyJoinColumn annotations. When the MapKeyJoinColumns annotation is used, both the name and the referencedColumnName elements must be specified in each of the grouped MapKeyJoinColumn annotations.
- See Also:
- MapKeyJoinColumn
- ForeignKey
- Since:
- JPA 2.0
Public Annotation Attributes
If both this element and the
foreignKey element of any of the MapKeyJoinColumn elements are specified, the behavior is undefined. If no foreignKey annotation element is specified in either location, a default foreign key strategy is selected by the persistence provider. - Since:
- JPA 2.1
- Since:
- JPA 2.0