Hotel{
id: Long
hotelName: String
address : String
}
IHotelDao{
add(hotel: Hotel)
update(hotel): Hotel
findAll() : List
findById(id: long) : Hotel
}
IHotelService{
findHotelByName(Strind name): List
findById(id) : Hotel
add(name, address) : Hotel
changeAddress(id, newAddress) : Hotel
findAll() : List
}
-
Add hotels in the application
-
change address
-
find hotel by id
-
find all hotels
-
find all hotels information which have name provided by end user