Many to many association idiom

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
(The Many to many association idiom)
Line 1: Line 1:
 
The many to many association idiom is useful for removing class interdependence when there is a many to many class association.
 
The many to many association idiom is useful for removing class interdependence when there is a many to many class association.
 
  
 
== Before ==
 
== Before ==
Line 7: Line 6:
 
==After==
 
==After==
 
[[image:ManyToManyAssociation2.jpg]]
 
[[image:ManyToManyAssociation2.jpg]]
 +
 +
The [[Mediator]] pattern is a higher level pattern which removes many-to-many relationships between classes, but it's main purpose is to reduce complexity of a set of objects which have many inter-dependencies.
 +
 +
== See Also ==
 +
* [[Mediator]]

Revision as of 00:53, 17 September 2008

The many to many association idiom is useful for removing class interdependence when there is a many to many class association.

Before

ManyToManyAssociation1.jpg

After

ManyToManyAssociation2.jpg

The Mediator pattern is a higher level pattern which removes many-to-many relationships between classes, but it's main purpose is to reduce complexity of a set of objects which have many inter-dependencies.

See Also

Personal tools