• 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

Duplicate customer ID when booking

 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, I have a question regarding booking. Now I got the network client table view update out of the way, suppose I book a record with customer ID "1123". Then I try to book another record with the same ID, will that be allowed??

In my humble opinion it should not be allowed because those customer rep didn't know whether the rep next to him might have used the same ID. What do you guys think.
 
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

K.Tsang wrote:

Hello, I have a question regarding booking. Now I got the network client table view update out of the way, suppose I book a record with customer ID "1123". Then I try to book another record with the same ID, will that be allowed??

In my humble opinion it should not be allowed because those customer rep didn't know whether the rep next to him might have used the same ID. What do you guys think.



Without knowing your assignment I can only comment with regards to B&S 2.2.1.

How would you monitor this? You would have to lock and read the entire file or keep a file of customer Ids and correalate this with the locking.
Seems like a lot of work that for my assignment isn't required.

There is no mention that customer Ids have to be unique within the file (not on B&S 2.2.1) and it is also probable that a customer requires the
services of more than 1 contractor as the contractor may not cover all maintenance required by the customer.

For me this seems beyond the scope of the project, but it's your call whether you want to include, or indeed have to, for your particular assignment.
 
K. Tsang
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Kevin, I'm doing URLyBird the hotel system.

In my opinion it's not that hard to check. All I really need to do is to put all the customer ID into a set and check upon that when book method is invoke.

Cos 1 customer can book 1 hotel room at any one time. Without checking out that same customer can't book again. In another words, you can live at 2 places at once on the same night/period in different cities.
 
Kevin Florish
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
K even though I am not doing Urlybird I do remember reading posts about this particular topic.

It's definitely worth searching the forums on this, for a more definitive answer


Ps can you change the K in K.Tsang to a longer name please.
 
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Howdy, K!

You know, nothing about this was mentioned in the specification, so I did not worry about it. So, in my case, the same client can book more than 1 room.
 
reply
    Bookmark Topic Watch Topic
  • New Topic