ary key.

 <p>If the entity has a derived primary key, the
 <a href="AttributeOverride.html" title="annotation interface in jakarta.persistence"><code>AttributeOverride</code></a> annotation may only be used to
 override those attributes of the embedded id that do not
 correspond to the relationship to the parent entity.

 <p>Relationship mappings defined within an embedded primary
 key type are not supported.

 <p>Example 1:
 

 <p>Example 2:
 </div>
<dl class="notes">
<dt>Since:</dt>
<dd>1.0</dd>
<dt>See 