Use an Embedded ID Mapping to specify the primary key of an embedded ID. These mappings may be used with a Embeddable entities.
In the JPA Structure view, select the field to map.
Right-click the field and then select Map As > Embedded Id. The JPA Details view (for attributes) displays the properties for the selected field.
Use this table to complete the remaining fields on the JPA Details view.
Property | Description | Default |
---|---|---|
Entity Mapping Hyperlink | Defines this mapping as a Embedded Id.
This corresponds to the |
Embedded Id |
Eclipse adds the following annotations to the field:
@EmbeddedId