Skip to content

Latest commit

 

History

History
70 lines (30 loc) · 967 Bytes

File metadata and controls

70 lines (30 loc) · 967 Bytes

Layered Architecture task

Hotel management system

group id: com.cg.apps

artifact id : hotelms

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

}

Features Required

  1. Add hotels in the application

  2. change address

  3. find hotel by id

  4. find all hotels

  5. find all hotels information which have name provided by end user

validations on id, name , address

id can't be -ve, name cant be empty or null , address can't be empty or null