Please add association class support to classDiagram syntax
See original GitHub issueIs your feature request related to a problem? Please describe. Unable to represent UML association classes in Mermaid class diagrams.
Describe the solution you’d like An extension to the current class diagram syntax that will render association classes.
Describe alternatives you’ve considered Using a tool other than Mermaid for class diagrams that does support association classes.
Additional context
What would be needed is a way to indicate a relationship between three classes, the two classes being associated and the association class that embodies the relationship. This might be done in a number of ways. One might be to support adding a class in the middle of a normal relationship, e.g. X "mult" -- A -- "mult" Y: label
to denote an association class A
embodying the relationship between classes X
and Y
.
However it is represented in the classDiagram
syntax, this should render as a standard UML association class, i.e. a normal relationship line between X
and Y
with a dashed line connecting A
to the relationship line.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:10
Top GitHub Comments
Since most of the notation for class Diagram in mermaid matches those of PlantUML, I recommend following the same notation for association class in PlantUML for mermaid
Link is here http://plantuml.com/guide
in other words, like this
Would appreciate this!