 or interface in java.lang.annotation" class="externalLink">RUNTIME</a>)
public @interface <span class="memberNameLabel">JoinColumns</span></pre>
<div class="block">Specifies the mapping for composite foreign keys. This annotation 
 groups <code>JoinColumn</code> annotations for the same relationship.

 <p> When the <code>JoinColumns</code> annotation is used, 
 both the <code>name</code> and the <code>referencedColumnName</code> elements 
 must be specified in each such <code>JoinColumn</code> annotation.
