Defining and Removing Relationships between Entities

  1. In the Relations list of Palette, choose a relationship type.

  2. Click on the source entity of the relationship or press ESCAPE to cancel.

  3. Click the target entity of the relationship with the primary mouse button or press ESCAPE to cancel.

    The Eclipse IDE creates and visualizes the relationship, as well as the relevant relationship attributes of the entities, depending on the type of relation.

  4. To remove a particular 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 and deletes the relationship attributes of the two related entities.