Plantuml: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
= Stackoverflow questions = | = Stackoverflow questions = | ||
== In PlantUML, how do I specify role names at either end of an association between two classes? == | |||
[https://stackoverflow.com/questions/60226784/in-plantuml-how-do-i-specify-role-names-at-either-end-of-an-association-between?noredirect=1#comment106569694_60226784 In PlantUML, how do I specify role names at either end of an association between two classes?] | |||
=== source code === | |||
<pre> | |||
hide circle | |||
class Person { | |||
} | |||
class Company { | |||
} | |||
Person "+employee 0..*" <-- "+employer 0..1" Company : employs | |||
note on link: [[https://en.wiktionary.org/wiki/employ employs]] is the name of the association between the classes Person and Company. | |||
</pre> | |||
== rendered === | |||
<uml> | <uml> | ||
hide circle | hide circle | ||
Revision as of 13:52, 16 February 2020
Stackoverflow questions
In PlantUML, how do I specify role names at either end of an association between two classes?
In PlantUML, how do I specify role names at either end of an association between two classes?
source code
hide circle
class Person {
}
class Company {
}
Person "+employee 0..*" <-- "+employer 0..1" Company : employs
note on link: [[https://en.wiktionary.org/wiki/employ employs]] is the name of the association between the classes Person and Company.
rendered =
