Creating UML class diagrams of enterprise beans
You can create new Unified Modeling Language (UML) class diagrams of enterprise beans to understand the structure and relationships of enterprise beans, and bean classes and interfaces.
To create a UML class diagram of enterprise beans, in the Project Explorer view, select and right-click the enterprise beans; then click Visualize > Add to New Diagram File > Class Diagram.
Tip: You can also create UML class diagrams of Enterprise JavaBeans (EJB) projects from the EJB Deployment Descriptor Editor. Select an EJB project and, on the Overview page, under Visualization, click New Class Diagram.
Setting the default to add new enterprise beans to class diagrams
You can set the default to add new enterprise beans to existing or new class diagrams when you create them by using the Create an Enterprise Bean wizard.
To set the default to add new enterprise beans to class diagrams:
Click Window > Preferences.
In the Preferences window, expand Modeling and click EJB.
On the EJB page, select Allow newly generated/created EJBs to open in selected class diagrams.
Showing and hiding EJB relationships
You can update an open class diagram or selected enterprise beans in a class diagram by showing or hiding the relationships that match your selected criteria.
Relationships must already exist between enterprise beans before you can show or hide them.
NOTE: Hiding relationships removes the relationships from the diagram only. The underlying semantic relationships remain intact.
To show or hide EJB relationships:
In the diagram editor, complete one of the following steps:
To update an open class diagram, right-click an empty space in the diagram editor; then click Filters > Show/Hide Relationships.
To update selected enterprise beans, right-click an enterprise bean or group of selected enterprise beans; then click Filters > Show/Hide Relationships.
In the Show/Hide Relationships window, specify the types of EJB relationships to show or hide by selecting or clearing the check boxes.