You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The status attribute associated with the class Room, makes it unavailable for other bookings if the Booking period does not collide with the previous booked rooms.
Let's say I say booked Room 1 for 13-09 till 15-09, now the status of this Room is made BOOKED, and if another guest tries to make a booking from 17-09 till 22-09, he is not allowed to book.
I'm not sure if this behaviour is expected but there can be some solutions to this problem.
Possible Solution: creating another map to store datewise bookings for a room
Pros: cancel bookings, make bookings, checking valid booking requests can be easy.
Cons: not sure if this is best design practise
The text was updated successfully, but these errors were encountered:
The status attribute associated with the class Room, makes it unavailable for other bookings if the Booking period does not collide with the previous booked rooms.
Let's say I say booked Room 1 for 13-09 till 15-09, now the status of this Room is made BOOKED, and if another guest tries to make a booking from 17-09 till 22-09, he is not allowed to book.
I'm not sure if this behaviour is expected but there can be some solutions to this problem.
Possible Solution: creating another map to store datewise bookings for a room
Pros: cancel bookings, make bookings, checking valid booking requests can be easy.
Cons: not sure if this is best design practise
The text was updated successfully, but these errors were encountered: