fssa-batch3 / fssa-batch3/sec_b_santhosh.devendran__corejava_project_2

Create flight

Đang mở
#4 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
HTML
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### 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]
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.