fssa-batch3 / fssa-batch3/sec_b_vigneshwar.vijayakumar__corejava_project_2
Create new Rooms
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
#### User Story:
> Create new room
#### Pre-requisites:
- [ ] Create Rooms Table
- [ ] Rooms Model
- [ ] Rooms DAO (create)
- [ ] Rooms Service (create)
#### Validation:
- [ ] Form Validation
- Hotel Name (null, empty)
- Room Name (null, empty)
- Number of Beds ( <= 0 )
- Price (Positive integer)
#### Messages:
- Hotel Name cannot be null or empty.
- Room Name cannot be null or empty.
- Number of beds should be in an positive integer.
- Price should be an positive integer.
#### Flow:
```mermaid
graph TD;
A(Value Passed to RoomService - Room Object) --> B(Form Validation) -- Valid --> C(Business Validation)
B --Invalid --> G(Validation Exception)
C-- Valid --> D(Value Passed to RoomDAO)
D --> E(Store Value in Database)
C -- Invalid --> F(Validation Exception)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.