fssa-batch3 / fssa-batch3/sec_b_vigneshwar.vijayakumar__corejava_project_2
Book tickets
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
#### User Story:
> User can book ticket.
#### Pre-requisites:
- [ ] Create Ticket table
- [ ] Ticket model
- [ ] Ticket DAO (create)
- [ ] Ticket Service (create)
#### Validation:
- [ ] Form Validation:
- User ID ( <= 0)
- Number of Adults ( <= 0 )
- Number of Children ( < 0 )
- From Date (null or empty , Pattern, valid range)
- To Date (null or empty , Pattern, valid range)
- [ ] Business Validation:
- Check If the user is already exists in user table.
#### Messages:
- User Id cannot be less than zero.
- Number of adults is greater than 0.
- Number of children is greater than or equal to 0.
- From date is not null or empty or invalid pattern.
- To date is not null or empty or invalid pattern.
- User doesn't exist.
#### Flow:
```mermaid
graph TD;
A(Value Passed to TicketService - Ticket object) --> B(Form Validation) -- Valid --> C(Business Validation)
B --Invalid --> H(Validation Exception)
C -- Valid--> D(Value Passed to TicketDAO)
D --> E(Value Stored in Database)
C -- Invalid --> F(Validation Exception)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.