javax.persistence
Annotation Type JoinColumns


@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface JoinColumns

Composite foreign keys are supported by means of the JoinColumns annotation. The JoinColumns annotation groups JoinColumn annotations for the same relationship.
When the JoinColumns annotation is used, both the name and the referencedColumnName elements must be specified in each such JoinColumn annotation.

Since:
EJB 3.0 version.
Author:
Florent Benoit
See Also:
EJB 3.0 specification

Required Element Summary
 JoinColumn[] value
          List of JoinColumn objects.
 

Element Detail

value

public abstract JoinColumn[] value
List of JoinColumn objects.