Relationships in domain modeling class diagrams

In domain modeling class diagrams, a relationship is the connection between Java™ classes or interfaces or between Enterprise JavaBeans (EJB) enterprise beans.

You can use several relationships to define the structure between Java classes or interfaces or between enterprise beans:

You can also use note attachment relationships to provide additional information about diagram elements.