Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Entity Relationships - Many-to-Many mapping ?

 
kri shan
Ranch Hand
Posts: 1462
  • 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
  • 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
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic