Open ronaldtse opened 4 years ago
association "CompanyHasEmployees" { direct Company Employees.+employee[1..*] }
association "MyCompanyHasEmployees" { generalization CompanyHasEmployees }
It seems that all these associations can be defined with attribute syntax:
class Company {
+employee Employees[1..*]
}
class MyCompany {
+me Employees{redefines employee}
}
Why do we need:
association "MyCompanyHasEmployees" {
generalization CompanyHasEmployees
}
In order to draw this additional generalization line?
Maybe you're right. But how does this line:
+me Employees{redefines employee}
know that {redefines employees}
points to the relationship defined as:
class Company {
+employee Employees[1..*]
}
?
I guess we can find that employee
is an attribute of Employees
.
Great idea! :+1:
Association generalization
Proposal: