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

(Required) The map key join columns that are used to map to the entity that is the map key.
Since:
Jakarta Persistence (JPA) 1.0
(Optional) Used to specify or control the generation of a foreign key constraint when table generation is in effect.
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()