Embedded ID annotation

Use the @EmbeddedId annotation in conjunction with the @Embeddable annotation to move the definition of a composite key inside the entity.

The @Embeddable annotation is usually used to model persistent objects that have no identity of their own, because they are nested inside another entity.


Feedback