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

Question to a class diagram in the Cade's book

 
Petr Kleja
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am just in the first phase of preparation. I have just read Mark Cade's book and I am quite delighted.
I have a little doubt about correctness of class diagram on page 169.
There is a relationship between order and lineitem. It is clear and logical. An order has many line items. But what about relationship between product and lineitem. I think there should be * close to lineitem in relationship with product. Product can be present in more than on line item. I can be wrong. I have not yet revised my UML knowledge.
Thank you very much for any answer.

Petr Kleja
SCJP, SCBCD, SCMAD, SCWCD, SCDJWS
 
Santiago Urrizola
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Relation and cardinalities shoul be
LineItem (0..*) -----------> (1) Product
 
Petr Kleja
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much Santiago. So I was right. There is also missing navigability > sign. What a pity I could not find errata for Cade's book. There is no on on www.phptr.com .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic