In the Relations list of Palette, choose a relationship type.
Click on the source entity of the relationship or press ESCAPE to cancel.
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.
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.