Managing Entity Inheritance

Inheriting Persistent Types

  1. In the Inheritance list of Palette, choose Inherit Persistent Type.

  2. Click on the source entity or the mapped superclass of the Is-A relationship or press ESCAPE to cancel.

  3. Click on the target entity of the Is-A relationship or press ESCAPE to cancel.

    The Eclipse IDE creates and visualizes the Is-A relationship.

Inheriting Entities

  1. In the Inheritance list of the Palette, choose Inherited Entity.

  2. Click on the source entity or the mapped superclass of the Is-A relationship or press ESCAPE to cancel.

  3. Click somewhere in the diagram or press ESCAPE to cancel.

    The Eclipse IDE creates and visualizes a new inherited entity, as well as the relevant Is-A relationship.

Removing Is-A Relationships

To remove a particular Is-A relationship, select the relation on the JPA diagram and press DELETE , or choose Delete from the context menu.

Removing a relationship via the JPA diagram also removes it from the application data model.