Reading the 1 near Customer as one order per customer
Fix one Order: the 1 at Customer means that order has one customer. Read the Order end to count orders per customer.
Four classes form the order model. Select a class or association to inspect members, roles and multiplicities.
A class diagram defines types and rules. Sample objects do not prove that all possible instances satisfy those rules.
A class diagram defines types and rules. Sample objects do not prove that all possible instances satisfy those rules.
Drag the slider: see how many instances are allowed under this rule.
Select an element to inspect it. On small screens, scroll horizontally or open the text list.
Customers and orders are associated. Each order has one customer in this case.
These are case-specific business choices, not mandatory rules for every UML model. A different model may validly express another business.
Matches the original policy.Open objects under this model ↗Links retain relationship settings and the built-in snapshot version. Custom objects and slot edits remain on this page.
A class diagram defines types and rules. Sample objects do not prove that all possible instances satisfy those rules.
An underlined heading contains instance name : classifier. Slots hold values at this moment. Lines are links, not messages or execution order.
| Instance identifier | Related classifier | Actual count | Required range | Validation feedback |
|---|---|---|---|---|
| lin | Order | 2 | 0..* | Conforms |
| mei | Order | 0 | 0..* | Conforms |
| o1 | Customer | 1 | 1 | Conforms |
| o2 | Customer | 1 | 1 | Conforms |
| o1 | OrderLine | 1 | 1..* | Conforms |
| o2 | OrderLine | 1 | 1..* | Conforms |
| line1 | Order | 1 | 1 | Conforms |
| line2 | Order | 1 | 1 | Conforms |
| line1 | Product | 1 | 1 | Conforms |
| line2 | Product | 1 | 1 | Conforms |
| p1 | OrderLine | 2 | 0..* | Conforms |
| p2 | OrderLine | 0 | 0..* | Conforms |
Editing an earlier record replaces its future. Switching built-in versions starts again.
Fix one Order: the 1 at Customer means that order has one customer. Read the Order end to count orders per customer.
In a complete snapshot each order needs a line. Changing the range to 0..* changes the business rule.
Ordinary association supports shared product references. Composition requires checking exclusive ownership and the whole-end upper bound.
A sample can refute an unsuitable constraint; it cannot prove every business instance valid. Requirements still determine the rules.
Cases, diagrams and exercises are original. Checks cover four classes, three binary relationships and the stated attribute domains, not all of UML. Polymorphic links through inheritance, qualified associations, association classes and OCL are outside scope.
OMG · UML 2.5.1 §§9, 11 ↗Sparx Systems · Class diagrams ↗Sparx Systems · Object diagrams ↗The Department end is 1 and the Employee end is 0..*. Fix one Employee instance. How many Departments does it link to?