Package javax.persistence
Annotation Type MapKeyJoinColumns
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface MapKeyJoinColumns
Supports composite map keys that reference entities.The
MapKeyJoinColumns
annotation groupsMapKeyJoinColumn
annotations. When theMapKeyJoinColumns
annotation is used, both thename
and thereferencedColumnName
elements must be specified in each of the groupedMapKeyJoinColumn
annotations.- See Also:
MapKeyJoinColumn
,ForeignKey
- Since:
- 2.0
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description MapKeyJoinColumn[]
value
(Required) The map key join columns that are used to map to the entity that is the map key.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description ForeignKey
foreignKey
(Optional) Used to specify or control the generation of a foreign key constraint when table generation is in effect.
-
-
-
Element Detail
-
value
MapKeyJoinColumn[] value
(Required) The map key join columns that are used to map to the entity that is the map key.
-
-
-
foreignKey
ForeignKey foreignKey
(Optional) Used to specify or control the generation of a foreign key constraint when table generation is in effect. If both this element and theforeignKey
element of any of theMapKeyJoinColumn
elements are specified, the behavior is undefined. If no foreign key annotation element is specified in either location, the persistence provider's default foreign key strategy will apply.- Since:
- 2.1
- Default:
- @javax.persistence.ForeignKey(javax.persistence.ConstraintMode.PROVIDER_DEFAULT)
-
-