fssa-batch3 / fssa-batch3/sec_b_mathivanan.pachiyappan__corejava_project_2
Update election details
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
### Feature: Update Election Details
>Update Election details in a database.
#### Pre-requisites:
- [ ] complete create election feature
- [ ] taluk table
- [ ] Taluk DAO ( update Taluk)
- [ ] Taluk Service ( update (Taluk taluk))
- [ ] election table
- [ ] Election DAO( update Election)
- [ ] Election service ( update (Election election))
#### Validations:
- [ ] Form Validation
* update( Election election )
* election null
* election Name( null, empty)
* booth Address( null, empty)
* election id (>0)
* taluk id(>0)
* endDate(>current date)
* update Taluk (Taluk taluk)
* id(>0)
- [ ] Business Validation
* check the election and update
* check the Taluk
#### Messages:
* Invalid Election object
* Invalid election id input
* Invalid election Name input
* Invalid Date input
* election not exist
* Election not found
* Invalid Taluk object
* Invalid taluk Id
#### Flow:
```mermaid
graph TD;
A[Election Service: Update Election] --> B[Form Validation]
B -- Yes --> C[Business Validation]
B -- No --> G[Throws Exception]
C -- Yes --> T[Taluk Validation]
C -- No --> F[Election Service: Election Not Found]
T -- Yes --> D[Election DAO: Update Election]
T -- No --> H[Throws Exception]
D --> E[Election Service: Election Updated]
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.