• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Association or Aggregation or Composition

 
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why do you need to know that?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic