Embedded ID annotation
Use the @EmbeddedId annotation with the @Embeddable annotation to move the definition of a composite key inside the entity.
The @Embeddable annotation is used to model persistent objects that have no identity of their own, because they are nested inside another entity.