• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Question to a class diagram in the Cade's book

 
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
 
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 .
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!