• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Entity Relationships - Many-to-Many mapping ?

 
kri shan
Ranch Hand
Posts: 1453
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Class A and Class B has many-to-many relationship. Hence i broke into 2 one-to-many relationship using link class L. What is the relationship between Class A to Class L and Class L to Class B. Is it agreegation or composite agreegation ?
 
Hong Anderson
Ranch Hand
Posts: 1936
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most of the time it will be just an association.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you need the "link class" for? I know that you need a link *table* in a RDBMS, but that doesn't mean that you also need a class...
 
Hong Anderson
Ranch Hand
Posts: 1936
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are some cases that we want to model links as objects, like we want to specify additional attributes to the links.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic