Multiplicity vs Cardinality

后端 未结 6 1962
暗喜
暗喜 2020-12-28 12:54

When talking about data models and databases, the term Cardinality is often used to describe the number of allowed elements in a given set.

UML oft

6条回答
  •  长发绾君心
    2020-12-28 13:36

    The simplest explanation would be to say:

    Multiplicity = Cardinality + Participation

    Cardinality: Denotes the maximum number of possible relationship occurrences in which a certain entity can participate in (in simple terms: at most).

    Participation: Denotes if all or only some entity occurrences participate in a relationship (in simple terms: at least).

    Ex:

提交回复
热议问题