Note: This ORM/SQL annotation is silently ignored by ObjectDB

85 words

javax.persistence.MapKeyJoinColumns - JPA annotation

javax.persistence
Annotation MapKeyJoinColumns

Target:
Fields (including property get methods)
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.

Since:
JPA 2.0
See Also:
MapKeyJoinColumn
(Required) The map key join columns that are used to map to the entity that is the map key.
(Required) The map key join columns that are used to map to the entity that is the map key.
Since:
JPA 2.0

This documentation page is derived (with some adjustments) from the open source JPA 2 RI (EclipseLink)
and is available under the terms of the Eclipse Public License, v. 1.0 and Eclipse Distribution License, v. 1.0.
Object Relational Mapping (ORM) JPA 2 providers include Hibernate, EclipseLink, TopLink, OpenJPA and DataNucleus.
Object DB is not an ORM JPA implementation but an Object Database for Java with built in JPA 2 support.