g name;
       long empid;   // corresponds to primary key type of Employee
    }

    &#064;Entity
    public class Dependent {
       &#064;EmbeddedId DependentId id;
        ...
       &#064;MapsId("empid")  //  maps the empid attribute of embedded id
       &#064;ManyToOne Employee emp;
    }
 </pre></div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>2.0</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== ANNOTATION TYPE OPTI