This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Booking Hotel Function and Date. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Booking Hotel Function and Date." Watch "Booking Hotel Function and Date." New topic
Author

Booking Hotel Function and Date.

Ixus See
Ranch Hand

Joined: Jul 17, 2011
Posts: 160
Decided to create a new topic or I might be banned soon!

Anyway..

When I book a hotel, do I need to update the date too?

It seems that all the hotel have dates that have pass already. Does it mean the user can't book them even there are no customer ID?

I am confuse with the date field and how is it related to booking function, can someone kindly explain to me please?

Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5122
    
  12

Ixus See wrote:Decided to create a new topic or I might be banned soon!

I don't think someone was banned for that... But we appreciate if you create a seperate topic (with a meaningful title) for different questions. It makes the forum easier to maintain and other ranchers with a similar question can easily find your thread through the search engine or based on the topic title (when they navigate through the pages).

Did you have a good reading of the instructions (and do you understand them), because you are asking a lot of questions which are very well explained in the instructions you've got. To book a room, a CSR will search for a room and then book it by simply providing the customer id (an 8 digit number) in the appropriate field. The database file (or a record cache) should be updated accordingly of course. So you don't have to do anything with the date. And when the customer id field is not empty (already filled with a customer id) this room is already booked and can of course not be booked anymore.

The date field is simple the night the room is available. And yes, all these dates are in the past, but that doesn't matter, it just indicates how old these assignments are already


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
 
 
subject: Booking Hotel Function and Date.
 
Similar Threads
Cannot save relations
NX: Questions about URLyBird 1.3.2
UrlyBird: Show records outside of 48 hour range
com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException
Failed because of 48 hrs "requirement"