fssa-batch3 / fssa-batch3/sec_b_santhosh.devendran__corejava_project_2

Create flight

未关闭
#4 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
HTML
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

### Feature: Create flight
>Create a new flight in a database.
#### Pre-requisites:
- [ ] Flight DAO( create Flight )
- [ ] Flight service ( create(Flight flight ) )
#### Validations:
- [ ] Form Validation
* create( Flight flight )
* flight null
* src( null, empty)
* destination( null, empty)
* id (>0)
* Airlineid(>0)
* flightNo(null, empty)
* dayId(>0)
* time(>current time)
* noOfSeats (>0)
- [ ] Business Validation
* id Already exists
#### Messages:
* Invalid User object
* Invalid src input
* Invalid destination input
* Invalid id input
* Invalid Airlineid input
* Invalid flightNo input
* Invalid dayId input
* Invalid time input
* Invalid seat input
* flight already exists
#### Flow:
```mermaid
graph TD;

A[Value Passed to Flightservice - flight Object] --> B[Form Validation & Business Validation]

B--> C{Validation Result}

C -- Valid --> D[Value Passed to flightDAO]

D --> E[Store Value in Database]

C -- Invalid --> F[Validation Exception]
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。