Association (Domain Model)
- •
What it is
- •
a relationship between conceptual classes that needs to be remembered for some duration
- •
- •
When to show one
- •
only when the relationship's knowledge genuinely needs to be preserved — avoid excessive associations, since too many lines create visual noise
- •
- •
Naming convention
- •
ClassName - VerbPhrase - ClassName, reading naturally in one direction (e.g. "Sale Paid-by CashPayment," not "Sale Uses CashPayment")
- •
- •
Multiplicity
- •
how many instances of class A can be linked to one instance of class B (e.g. one-to-many, many-to-many)
- •
- •
Roles
- •
each end of an association is a role, which may optionally carry a multiplicity, a name, and navigability
- •
- •
Related