Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 UML 非常陌生,并且正在使用 Lucidchart 对 java 中的一些类进行建模。我试图代表一对多的关系,其中 1 位艺术家将有许多专辑,每张专辑将有 1 位艺术家。这是建模这种关系的正确方法吗?
编辑
谢谢您的帮助。到目前为止,这是我想出的。我仍然对有关这些属性的其他内容感到有些困惑。多重性和线条是否正确?
您的图作为 UML 图不正确。我可以说是因为协会尽头的鱼尾纹。
为了使您的图表正确:
0..*
albums
Album
Artist
1
artist
Song