In the Relations list of the Palette, choose a relationship type.
Click the source entity of the relationship with the primary mouse button or choose ESCAPE to cancel.
Click the target entity of the relationship with the primary mouse button or choose 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.
To remove a particular relationship, select the relation on the JPA diagram and choose DELETE , or choose Delete in 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.