This week's book giveaway is in the Cloud forum.
We're giving away four copies of The Business Blockchain and have William Mougayar on-line!
See this thread for details.
Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

who creates shoppingcartModel ref Petstore

 
Dhiren Joshi
Ranch Hand
Posts: 463
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to find who creates the shoppingCartModel.
I couldnt find a single reference and I always thought that would be some session bean doing it.
Can anyone who has loooked in petstore in detail give me some inputs on this class and its creation .

Thanks
Dhiren
 
Josep Andreas
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dhiren,
I have some input for this, but do not know if it is going to answer your question.

From the petstore:
"This class represents the model data for the shopping cart. It is a value object and has fine grained getter methods."
Doesn't the model gets created by the shopping cart itself?

Some useful info:
http://www.csse.monash.edu.au/courseware/cse3450/Lectures/Module12/module.html

Isn't this question also related to this thread:
http://www.coderanch.com/t/153071/java-Architect-SCEA/certification/unpaid-itinerary-once-again
 
Dhiren Joshi
Ranch Hand
Posts: 463
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Josep,

From the petstore:
"This class represents the model data for the shopping cart. It is a value object and has fine grained getter methods."
Doesn't the model gets created by the shopping cart itself?



Those were very good informative links.
I am still not finding the creation of shoppingcartmodel.
What u are saying is correct but I cant find it from the code prespective in pet store.
Infact I cant find a ref to ShoppingCartModel anywhere even the jsp's.
Maybe I am missing something ..
Thanks
Dhiren
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic