• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

URLyBird customerID

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In database schema, there is a field called "owner". The specification says:


I am wondering what you guys use for customer IDs, they need to be unique. So i guess i need to use some kind of random number generator?
 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ericsson Liu:
In database schema, there is a field called "owner". The specification says:


I am wondering what you guys use for customer IDs, they need to be unique. So i guess i need to use some kind of random number generator?



There was some discussion on this in a different topic. You simply need to provide some way to let a CSR enter a customer id that will be stored in the database file. So, no random number generator or anything.
 
Ericsson Liu
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I see. So when shall I ask CSR for customerID, at the startup of the application or after they try to book the room? Should there be a prompt window?

Thanks
 
Kah Tang
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ericsson Liu:
I see. So when shall I ask CSR for customerID, at the startup of the application or after they try to book the room? Should there be a prompt window?

Thanks



Probably when they try to book a room. I can't really tell, because I did the B&S assignment. How the customer id is asked is up to you.
 
Ranch Hand
Posts: 759
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think it is assumed that the CSR have all the customer's ID. In addition, I assumed that one customer can books more than 2 rooms at the same time.

Hope that helps.


Jeffry Kristianto Yanuar (Java Instructor)
SCJP 5.0, SCJA, SCJD (Working on UrlyBird 1.3.2) --> preparing to upload
 
You will always be treated with dignity. Now, strip naked, get on the probulator and hold this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic