Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between cardinality "*", and "0..*" - UML

What's the difference between the operator * and the operator 0..* in UML (unified modeling language)?

I saw this two cardinality operators, but I don't now which one I must to use.

like image 374
guisantogui Avatar asked Sep 01 '13 18:09

guisantogui


People also ask

What does 0 * mean in UML?

The "0.. *" notation is used to denote "zero or more" (many). The following notation indicates that every object in Class A is associated with zero or more objects in Class B, and that every object in Class B is associated with exactly one object in Class A.

What is cardinality in UML?

uml. When data modeling methods talk about relationships, they use the term cardinality to indicate how many entities may be linked together. So you might have a relationship between order and customer and say that the cardinality of the relationship is one-to-many.


1 Answers

The notation '*' is a shortcut for '0..*'. the correct notation to use in this case is '*'. From the UML 2.4 spec:

A multiplicity with zero as the lower bound and an unspecified upper bound may use the alternative notation containing a single star “*” instead of “0..*.”

like image 121
Xaelis Avatar answered Sep 26 '22 02:09

Xaelis