Plantuml: Difference between revisions

From BITPlan Wiki
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
<pre>
<pre>
hide circle
hide circle
package PlantUml {
class Person {
class Person {
}
}
class Company {
class Company {
}
}
}
Person "+employee 0..*" <-- "+employer 0..1" Company : employs
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.
note on link: [[https://en.wiktionary.org/wiki/employ employs]] is the name of the association between the classes Person and Company.
</pre>
</pre>
== rendered ===
== rendered ===
<uml>
<uml>

Revision as of 13:53, 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
package PlantUml {
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 =