Class association roles

+1 vote
asked Mar 11 in Wanted features by broeze
For class associations multiplicity can be provided by -- "0..1"for example. This string field can be used for association role name alternatively. However, seperating the fields for both does not seem to be supported
commented Mar 12 by anonymous

Class assoications have distinct fields for association names and multiplicity, see object - Role name in association relationship - Stack Overflow so 

2 Answers

+1 vote
answered Mar 11 by dickmaley (4,120 points)
Please restate the question because it is not at all clear what you are asking.

Thank you.
commented Mar 12 by The-Lu (79,040 points)

Hello D.,

[To simpler issue tracking]

  • Please, could you just put a comment and not an answer (if it not an answer)?
Regards,
Th.
0 votes
answered Mar 12 by The-Lu (79,040 points)

Hello B.,

Here are some proposals:

@startuml
hide empty members

Class Professor 
Class Book

Professor "1..*\nauthor" - "0..*\ntextbook" Book : > wrote \t\t
@enduml

Or using 'Qualified associations':

@startuml
hide empty members

Class Professor 
Class Book

Professor [author] "1..*" -   "0..*\n" [textbook] Book : > wrote
@enduml

See also doc here:

If that can help,
Regards,
Th. 

...