2.5.1.2. Id Class
As we discussed in Identity Class, entities with multiple identity fields must use an identity class to encapsulate their persistent identity.
The IdClass annotation specifies this class.
It accepts a single java.lang.Class value.
The equivalent XML element is id-class, which has a single attribute:
-
class: Set this required attribute to the name of the identity class.