Jakarta Persistence (JPA) Annotation Type
jakarta.persistence.MapKeyJoinColumns
- Implemented Interfaces:
Annotation
- Target:
- Method, Field
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:
- Since:
- Jakarta Persistence (JPA) 2.0
Public Static Fields
No JavaDoc Info for jakarta.persistence.MapKeyJoinColumns/class
Annotation Elements
- Since:
- Jakarta Persistence (JPA) 1.0
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.- Default:
- @ForeignKey(PROVIDER_DEFAULT)
- Since:
- Jakarta Persistence (JPA) 2.1
Additional JDK methods inherited from java.lang.annotation.Annotation
annotationType(), equals(Object), hashCode(), toString()