Embedded mapping

Use an Embedded Mapping to specify a persistent field or property of an entity whose value is an instance of an embeddable class.

  1. In the JPA Structure view, right-click the field to map.

  2. Select Map as > Embedded. The JPA Details view (for attributes) displays the properties for the selected field.

    JPA Details, Embedded mapping

    PA Details, Element collection mapping
  3. Complete each field in the Embedded Mapping area.

Eclipse adds the following annotations to the field:

        name = "<COLUMN_NAME>"

Related tasks

Related references

Related concepts