an class="element-name">foreignKey</span></div>
<div class="block">(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 <code>foreignKey</code> element of
 any of the <a href="JoinColumn.html" title="annotation interface in jakarta.persistence"><code>JoinColumn</code></a> elements are specified, the
 behavior is undefined. If no foreign key annotation element
 is specified in either location, a default foreign key