JPA Annotation Attributein javax.persistence.MapsIdString value default "" (Optional) The name of the attribute within the composite key to which the relationship attribute corresponds. If not supplied, the relationship maps the entity's primary key. Since:JPA 2.0