Showing Java associations as attributes in domain modeling class diagrams

You can show Java™ association relationships as attributes in Java classifiers in domain modeling class diagrams.

Before you begin

You must have a domain modeling class diagram open.

Procedure

To show a Java association as an attribute, in the diagram editor, right-click an association relationship; then click Filters > Show as Attribute.
Tip: You can also drag an association onto the attribute compartment of the source of the association or right-click an association connector and click Delete from Diagram to show the association as an attribute.

Results

The association is removed from the diagram and is added to the source classifier as an attribute.

Feedback