How do I show relationships in Enterprise Architect
Asked Answered
P

3

5

I have used Enterprise Architect to create a simple class diagram. What I can't figure out how to do is make it show the relationships such as 1 to 1, etc...

Seems like a simple thing to show, but this program is not user friendly at all.

Pinup answered 23/12, 2012 at 20:32 Comment(2)
did you manage to link to classes with an association? You might want to double click that relation and modify the cardinality.Thistle
I do have the classes linked with associations. When I double click the association, I don't see anything that has to do with cardinality. I only see cardinality when I double click the class itself. Cardinality is listed under the details section there.Pinup
V
10

It is fairly simple actually - for both Class and Object diagrams you can use "Associate" from the toolbox. Then if you double click the association, you will be able to enter multiplicity under "Source Role" and "Target Role" tabs.

Vulture answered 27/12, 2012 at 21:17 Comment(4)
I guess I should have added some info. I created the class model by reverse engineering java code. I had to take the jpeg (class model) from EA and add all the missing info myself in Photoshop. I'm not sure I've gotten it all right and that's why I wanted EA to do it for me.Pinup
Using the Association from the toolbox just adds a new association to the model. I wanted the existing relationships to show (1.1, 1.*, etc...)Pinup
What is the kind of existing relationship?Vulture
@Pinup Please update your original question with this extra information. Reverse engineering only adds associations in certain circumstances.Sanderling
G
0

When you draw two classes and put association connector between them, you should right click the association, you will see multiplicity, but you should do this work in near of any class on the line of association.

Goniometer answered 8/11, 2014 at 10:8 Comment(0)
S
0

In the association properties dialog go to target and source role sections. There you'll find the multiplicity fields to fill in. You can also right click near the ends of the association on a diagram and select "multiplicity" from the context menu.

Sanderling answered 10/11, 2014 at 7:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.