Embedded ID mapping

Use an Embedded ID Mapping to specify the primary key of an embedded ID. These mappings may be used with a Embeddable entities.

  1. In the JPA Structure view, select the field to map.

  2. Right-click the field and then select Map As > Embedded Id. The JPA Details view (for attributes) displays the properties for the selected field.

    JPA Details, Embedded ID mapping

    JPA Details, Embedded ID mapping
  3. Complete each field in the Embedded ID Mapping area.

Eclipse adds the following annotations to the field:

@EmbeddedId

Related tasks

Related references

Related concepts