Implemented DAO
This commit is contained in:
Ashish Trivedi
2020-07-19 20:33:52 +05:30
parent 112973482d
commit 52e6ea2b68
8 changed files with 436 additions and 11 deletions
@@ -4,21 +4,22 @@ public class Hotel {
public void bookRoom(int roomNumber) {
/*
TODO
-> Check if room is available
-> Calculate price
-> Book the room
-> Commit transaction
TODO
-> Check if room is available
-> Calculate price
-> Book the room
-> Commit transaction
*/
}
public void cancelRoomBooking(int roomNumber) {
/*
TODO
-> Check if room is booked
-> Calculate refund price
-> Cancel the room booking
-> Commit transaction
-> Check if room is booked
-> Calculate refund price
-> Cancel the room booking
-> Commit transaction
*/
}
}