File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Database Schema: Customer holding record question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Database Schema: Customer holding record question" Watch "Database Schema: Customer holding record question" New topic
Author

Database Schema: Customer holding record question

Mark O' Sullivan
Ranch Hand

Joined: Aug 17, 2009
Posts: 160
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.
Anne Crace
Ranch Hand

Joined: Aug 29, 2005
Posts: 223
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.


SCJP, SCJD
Mark O' Sullivan
Ranch Hand

Joined: Aug 17, 2009
Posts: 160
Cheers,
Thanks very much Anne. Good luck with the submission.
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5206
    
  12

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


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Chris Bicnal
Ranch Hand

Joined: Aug 17, 2005
Posts: 78
    
    1
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)

 
jQuery in Action, 2nd edition
 
subject: Database Schema: Customer holding record question