fssa-batch3 / fssa-batch3/sec_b_santhosh.devendran__corejava_project_2

Update flight

Offen
#5 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
HTML
Sterne
0
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Feature: update existing flight

#### Pre-requisites:
- [ ] complete create flight feature
- [ ] Flight DAO( update Flight )
- [ ] Flightservice ( update (Flight flight ) )
#### Validations:
- [ ] Form Validation
* update( 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
* check the flight 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 not exist
#### 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[update Value in Database]

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.