javax.persistence
Annotation Type EmbeddedId


@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface EmbeddedId

The EmbeddedId annotation is applied to a persistent field or property of an entity class or mapped superclass to denote a composite primary key that is an embeddable class. The embeddable class must be annotated as Embeddable.

Since:
EJB 3.0 version.
Author:
Florent Benoit
See Also:
EJB 3.0 specification