Reply To:

If you want to design a data model - more appropriate diagram is Entity Relationship diagram. You can right click on an attribute and set it as primary key or foreign key.

In case of UML class diagram, there is no standard way to define primary key or foreign key. However you can set unique modifier {id} to primary key attributes (unique modifier was not supported in version 6.x, I recommend you to use newer version, the latest version is 11.51).

You can also set «PK» or «FK» stereotypes to attributes. The simplest way is to click on attribute name to edit it and then type «PK» or <<PK>> just before the attribute name.

Dusan Rodina - softwareideas.net 19 March 2018 17:25:25

New Comment

Comment
You can use these formatting tags: [b]bold[/b] [i]italic[/i] [u]underline[/u] [url]www.example.com[/url] [code]some code[/code] [quote]quoted text[/quote] [list]one list item per line[/list]