Opening the JPA Diagram Editor

  1. In the Project Explorer, select the project that you want to use for your entities.

  2. From the project context menu, choose JPA ToolsOpen Diagram .

Creating New Entity

In the Entities list of the Palette, choose Entity (Entity), and then click upon the diagram area.

The Eclipse IDE creates the new entity with a predefined name and a primary key.

Creating New Embeddable

In the Entities list of the Palette, choose Embeddable (Embeddable), and then click upon the diagram area.

The Eclipse IDE creates the new embeddable with a predefined name.

Creating New Mapped Superclass

In the Entities list of the Palette, choose Mapped Superclass (Mapped Superclass), and then click upon the diagram area.

The Eclipse IDE creates the new mapped superclass with a predefined name.

Displaying Existing Persistent Types within a Project on the Diagram