IDclass annotation
The @IDClass annotation is used to model a composite key.
Parent topic:
Adding a primary key to the JPA entity