posted 16 years ago
Hello Friends
Please tell me in the following situation how would you call the following associations of relations
It is a Manufacturing and Sales Company
All 3 depicts a Multiplicity -
One to many (1)(3)(5) and Many to one (2)(4)(6)
EMPLOYEE Vs PART
1. An Employee makes many parts - Association
2. A Part is made by one employee - Association
Owership - EMPLOYEE DOES NOT OWN PART
Lifecycle -
EMPLOYEE - CREATION - different time to PART
PART - CREATION - different time to EMPLOYEE
EMPLOYEE - DELETION - different time to PART
PART - DELETION - does not get deleted when EMPLOYEE gets deleted
CUSTOMER VS PART
3. An Customer buys many parts - Association
4. A Part is bought by one Customer - Association
Owership - CUSTOMER DOES NOT OWN PART
Lifecycle -
CUSTOMER - CREATION - different time to PART
PART - CREATION - different time to CUSTOMER
CUSTOMER - DELETION - different time to PART
PART - DELETION - does not get deleted when CUSTOMER gets deleted
PRODUCT_CATEGORY VS PART
5. An PRODUCT_CATEGORY Contains many PARTS - Composition
6. A PART belongs to a PRODUCT_CATEGPORY - Composition
Owership - PRODUCT CATEGORY OWNS PART
Lifecycle -
PRODUCT CATEGORY - CREATION - different time to PART
PART - CREATION - different time to PRODUCT CATEGORY
PRODUCT CATEGORY - DELETION - different time to PART
PART - DELETION - gets deleted when PRODUCT CATEGORY is deleted
How would you call each of these relationships
1.Association or Aggregation or Association?
2.Association or Aggregation or Association?
3.Association or Aggregation or Association?
4.Association or Aggregation or Association?
5.Association or Aggregation or Association?
6.Association or Aggregation or Association?
Would appreciate each of your comments please.
SCJP, SCWCD, SCBCD, SCEA 5