I am very new to UML and am using Lucidchart to model some classes in java. I am trying to represent a one to many relationship where 1 artist will have many albums and each album will have 1 artist. Is this the correct way to model this relationship?
EDIT
Thank you for your help. This is what I have come up with so far. I'm still a little confused about what else was said about the properties. Are the multiplicities and lines correct?
Your diagram is incorrect as a UML diagram. I can tell because of the crow's foot on the end of the association.
To make your diagram correct:
0..*
albums
property to the Album
end of the association (as you should never bury a list like this in UML--that's what associations represent!)Artist
end of the association to a multiplicity of 1
Artist
end of the association (e.g., artist
)Song
(which is an actual concept with more information than a name, such as duration, composer, etc.)Album
and Song
, creating appropriate multiplicities and propertiesIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With