javax.persistence Annotation Type MapsId @Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) public @interface MapsId Designates a ManyToOne or OneToOne relationship attribute that provides the mapping for an EmbeddedId primary key, an attribute within an EmbeddedId primary key, or a simple primary key of the parent entity. The value element specifies the attribute within a composite key to wh