# 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 Persistence Outline view, select the field to map. The Persistence Properties view (for attributes) displays the properties for the selected field.

2. In the Map As field, select Embedded Id.

3. 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. This field corresponds to the `@EmbeddedId` annotation. | Embedded Id

Eclipse adds the following annotations to the field:

    @EmbeddedId

Mapping an entity

Persistence Outline view
Persistence Properties view (for attributes)

Understanding OR mappings
Understanding JSR220: EJB 3.0