Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Question to a class diagram in the Cade's book

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
I'm still in control here. LOOK at this tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic