Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

LineItem in Cade's class diagram

Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I've been studying the Case Study in Cade and i've been looking at the LineItem class in the Class Diagram and wondering whether i need to apply a similar concept to the Flight Segment relationship.

From what I can make out LineItem holds a number of priced Products. So the LineItem captures the notion of several Products at a certain Price. An Order will have a number of LineItems.

Is that the only reason for the LineItem class? Is its sole purpose to represent a Number of Products and perhaps a Price.

Is there an specific reason why Order has been decoupled from Product?

    Bookmark Topic Watch Topic
  • New Topic