Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Duplicate customer ID when booking

 
K. Tsang
Bartender
Posts: 3583
16
Android Java
  • Mark post as helpful
  • send pies
  • 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.
 
Kevin Florish
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • 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: 3583
16
Android Java
  • Mark post as helpful
  • send pies
  • 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: 182
  • Mark post as helpful
  • send pies
  • 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.
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic