在 PlantUML 中,如何在两个 类 之间的关联的两端指定角色名称?
In PlantUML, how do I specify role names at either end of an association between two classes?
如何在 类 'Person' 和 [=18= 之间的关联 'employs' 的任一端指定角色名称 'employer' 和 'employee' ]?那当然和协会的名称不同:
@startuml
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
@enduml
在
试试
如何在 类 'Person' 和 [=18= 之间的关联 'employs' 的任一端指定角色名称 'employer' 和 'employee' ]?那当然和协会的名称不同:
@startuml
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
@enduml
在
试试