Caution:
If you rename or move an entity using a different approach (for example, via the Project Explorer), the entity disappears from the JPA diagram.
When you refactor an attribute type, any existing business logic within the attribute's access methods is deleted.
Using the JPA diagram editor, you can perform the following refactoring operations:
Rename the entity class - in the context menu of the entity name, choose Refactor Entity Class -> Rename , then complete the wizard.
Move the entity to another source package - in the context menu of the entity name, choose Refactor Entity Class -> Move , then complete the wizard.
Refactor an attribute type - in the context menu of an attribute, choose Refactor Attribute Type, change the type, and choose OK.
To view and edit the source code of a particular entity, double-click the title of the corresponding entity block on the diagram.
The Eclipse IDE opens the entity class in the standard source code editor.
When you apply changes to the source code, they are automatically synchronized with the diagram.
Note:
This operation removes the entities from the JPA diagram only, that is, they are not removed from the underlying application data model.
Click the JPA diagram with the secondary mouse button.
To save any unsaved changes to the application data model, and remove all entities from the diagram, choose Remove All Entities from Diagram -> ...and Save Changes
To remove all entities from the diagram without saving any unsaved changes to the data model, choose Remove All Entities from Diagram -> ...and Discard Changes .