This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cade class diagram

 
Jose Latrefoliere
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
New to this forum

One question about Cade class diagram;
The association between Product and LineItem is one to one, why not
Product 1 -->0..*LineItem ?

Thanks
Jose
 
Giri Alwar
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jose,
Here is my understanding. This multiplicity is in context of the relationship between LineItem and Order. A particular Order can contain multiple Line Items. Each Line Item in that Order will contain exactly one Product. Each Product can therefore exist in only one Line Item in that Order (if the customer desires more of that Product, the quantity will get incremented in the Line Item instead of another Line Item being created in that order).

If the relationship between Product and Line Item is considered without any context, then the multplicity you mentioned (1 --> *) would be valid.
 
Jose Latrefoliere
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Giri

If my understanding is correct:

For one instance of Order i cann't have more than one LineItem for one Product. This is relevant to the association Product *---*Order, becomes
Order 1--1..*LineItem 1--1 Product

Regards
Jose
 
raj b
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Giri,
Does that mean we need to specify the context in which we are considering the Muliplicity for Part II exam.
Does it also mean both are correct if we miss the documentation.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic