Friday 2 June 2023

PlantUML: Draw many to many relationship in class diagram

To model many to many relationship, you can use double-quotes "" on each side of the relation.

 

Example

Student "0..*" -- "1..*" Course

 


manyToMany.txt

@startuml

title "Class Composition"

class Student
class Course

Student "0..*" -- "1..*" Course

@enduml

 


 

Previous                                                    Next                                                    Home

No comments:

Post a Comment