24.1.40. @MapKey
<div class="paragraph">
The [`@MapKey`](http://docs.oracle.com/javaee/7/api/javax/persistence/MapKey.html) annotation is used to specify the key of a `java.util.Map` association for which the key type is either the primary key or an attribute of the entity which represents the value of the map.
</div>
<div class="paragraph">
See the [`@MapKey` mapping](#collections-map-unidirectional-example) section for more info.
</div>
</div>
<div class="sect3">