• 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

Database Schema: Customer holding record question

 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Very sorry second post today. in my database schema, theirs a field called "customer holding this record" and it's description is
"The id value (an 8 digit number) of the customer who has booked this room. If this field is all blanks, the record is available for sale." The question I'm wondering though, is if a room becomes booked using this field, well, how does it become unbooked again? There doesn't seem anyway of removing this customer.
Thanks.
 
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure if "unbooking" is necessary. I write to the field when it is booked/reserved and that's the end of it. People have implemented it, but it is beyond the scope of this assignment, so you won't gain anything by doing it. Hope this helps.
 
Mark O' Sullivan
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cheers,
Thanks very much Anne. Good luck with the submission.
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mark,

I can confirm Anne's remark: unbooking not in scope of this assignment. You may implement it, but it certainly isn't a must (and you won't get extra points for doing it. in fact you may only lose some points if it has a flaw).

Kind regards,
Roel
 
Ranch Hand
Posts: 100
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All very true responses, although I coded an un-book in my application because;

- the application is pretty much unusable without it
- it's very simple (it's basically the book operation with a blank customer number)

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic