A relationship is a link between entities. For example, in a model that manages human resources, the Member relationship links the Employee and Team entities and expresses that each employee works in a team, and each team has employees.
For example, the employee Martin works in the Marketing team is one occurrence of the Member relationship.
When you generate a PDM from a CDM or LDM, relationships are generated as references.
One-to-many relationship |
Description |
---|---|
|
Each division may have zero or more employees Each employee may belong to zero or one division |
|
Each division must have one or more employees Each employee may belong to zero or one division |
|
Each division may have zero or more employees Each employee must belong to one and only one division |
|
Each division must have one or more employees Each employee must belong to one and only one division |
|
Each division may have zero or more employees Each employee must belong to one and only one division Each employee is identified uniquely by division number and employee number |
|
Each division must have one or more employees Each employee must belong to one and only one division Each employee is identified uniquely by division number and employee number |
One-to-one relationship |
Description |
---|---|
|
Each team works on zero or one project Each project is managed by zero or one team |
|
Each team works on one and one project only Each project is managed by zero or one team |
|
Each team works on zero or one project Each project is managed by one and one team only |
Many-to-many relationship |
Description |
---|---|
|
Each division may have zero or more employees Each employee may belong to zero or more divisions |
|
Each division must have one or more employees Each employee may belong to zero or more divisions |
|
Each division may have zero or more employees Each employee must belong to one or more divisions |
|
Each division must have one or more employees Each employee must belong to one or more divisions |