• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Itinerary Cart

 
stan lee
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Iam using Mark & Cade class diagram as my reference for my class diagram.

Iam assuming that a list of itineraries will be displayed to the user at the appropriate time. Iam using a ItineraryCart which is a SFSB to hold the list of itineraries (which are actually VO's).

Iam wondering how to show the ItineraryCart and its associations in the class diagram.

In most of the forums it is suggested not to display the VO's, where as my ItineraryCart contains list of VO's.

Can any one pls clarify on this.

Regards!
Stan-lee
 
jashu ja
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What is the rational behind, storing "ItineraryCart" in Stateful session bean ?

Isn�t ListItinerary a readonly Values (or collection of Itinerary's).
 
stan lee
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well Iam asuming that user can create more than one itinerary and Iam not persisting the itineraries in the database, but maintain them in session.

I am using the cart as SFSB for the simple reason that the session is stored in the ejb tier, where session can be accessed by both web and application clients.

Of course, my SFSB will have a List which containts the itinerary VO's.

Any idea how the Cart should be shown in the class diagram?

Regards!
Stan-lee
 
jashu ja
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm ok, with your assumption. But, to me, from prepare itinerary use case, I find that we my have to save the itinerary, to proceed to pay for itinerary.

Use case alternative flow, dose have a mention about it!

Any thoughts!


jashu
 
stan lee
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jashu,

For me saving the itinerary and payment takes at one shot..

Regards!
Stan-lee
 
jashu ja
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If we look at the post-conditions of the use case, it looks like we can still have the Itinerary, which is unpaid.

Dose that mean, we save the itinerary first, before we proceed with pay itinerary ?

But again, I'm ok, with your assumption!

Any thoughts!

Jashu.
 
chao cai
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you can not show cart in the class diagram,because the diagram is for the architecture,you can find many winners just draw BDM extension from here.
 
stan lee
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think we need to show the Cart object to get the complete marks in the class diagram & component diagram.

Guys who have already taken part 2 & 3, pls advise.

Regards!
Stan-lee
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic