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.
In the Persistence Outline view, select the field to map. The Persistence Properties view (for attributes) displays the properties for the selected field.
In the Map As field, select Embedded Id.
Use this table to complete the remaining fields on the Persistence Properties view.
Property | Description | Default |
---|---|---|
Map As | Defines this mapping as a Embedded Id. | Embedded Id |
Eclipse adds the following annotations to the field:
@EmbeddedId