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

Should LineItem be a persistent object

 
don brown (aka brownie brownie)
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't so. I think Order and Product would be persisted but LineItem is a convenience class used during a session but not persisted.

What do you guys think?
 
arvindh seshadri
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Line items need not be persistent . They can be classes as you suggested.
 
Parag Bharambe
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think line item can be constructed from different domain classes. Domain class are (mostly)designed to be persistant object. So I do not believe that line item should be persisted.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic