This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
Sheriff

Joined: Jul 19, 2004
Posts: 7214
    
  29

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
OCAJP 7
Chris Bicnal
Ranch Hand

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

 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Database Schema: Customer holding record question
 
It's not a secret anymore!