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
value
public abstract JoinColumn[] value
- List of JoinColumn objects.