#### 24.1.31. `@IdClass`

<div class="paragraph">

The [`@IdClass`](http://docs.oracle.com/javaee/7/api/javax/persistence/IdClass.html) annotation is used if the current entity defined a composite identifier.
A separate class encapsulates all the identifier attributes, which are mirrored by the current entity mapping.

</div>
<div class="paragraph">

See the [Composite identifiers with `@IdClass`](#identifiers-composite-nonaggregated) section for more info.

</div>
</div>
<div class="sect3">

results matching ""

    No results matching ""