Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

About Milleage Account

 
Anderson Fonseca
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When a booked flight is paid using a mileage account, should we add a control class on diagram showing what/when put points to my milleage account or not?

e.g: when i buy a flight ticket with a credit card i earned mile, when i buy using mileage account i should earn too?

thanks
 
s khosa
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mileage should be debted the points that you have used. Buying ticket mileage account would mean that you are using your mileage points.

As far creating a controlling class goes, it depends how you plan to do it. If Mileage Account is an entity bean then you can as well use a StateLess Session Bean to debt it. As per my understanding accessing mileage account - either for points balance or for debting/reducing points based on purchase is a onetime thing. We do not need conversational state for that.


Thanks
 
Anderson Fonseca
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks s khosa,

but i wanna know when we should earn miles point either buying with credit card or using mileage account for debit. I be thinking if payment mode has relation to earn miles.
 
s khosa
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. Payment via credit card would be the way to earn mileage points.

Thanks
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!