Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • 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
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

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 .
 
What's that smell? Hey, sniff this tiny ad:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!