IntelliJ IDEA 2020.1 Help

EJB ER diagram

An EJB ER diagram opens on a separate editor tab when you select ER Diagram in the context menu for a module in the EJB tool window.

Use this diagram to view entity beans defined in your module, and also to create and change relationships between them.




icons graph grid

Click this button to show grid in the diagram background.

icons graph snapToGrid

Click this button to align elements against the grid.

icons general zoomIn

Click this button to increase the scale of the diagram.

icons general zoomOut

Click this button to decrease the scale of the diagram.

icons graph actualZoom

Click this button to restore the actual size of the diagram.

icons graph fitContent

Click this button to change the scale to make the contents fit into the current diagram size.

icons graph layout

Click this button to apply the current layout, selected on the context menu of the diagram.

icons toolbarDecorator export

Click this button to save the diagram in an image file with the specified name and path. The possible formats are: jpeg, png and gif.


Click this button to print the diagram.


Click this button to open the diagram preview in a separate frame, where you can configure the page layout, scale, and headings information.

Context menu




Use this node to add new EJBs to a module with the EJB facet and configure relationships between CMP Entity Beans.


Choose this command to select the desired layout from the list.

Show edge labels

Choose this command to show multiplicities of the relationship links in diagram.

Last modified: 29 June 2020