fssa-batch3 / fssa-batch3/sec_b_mathivanan.pachiyappan__corejava_project_2

Create new election

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### Feature: Create Election
>Create a new election in a database.
#### Pre-requisites:
- [ ] taluk table
- [ ] Taluk DAO (create Taluk)
- [ ] Taluk service (create (Taluk taluk))
- [ ] election table
- [ ] Election DAO( create Election)
- [ ] Election service ( create(Election election) )

#### Validations:
- [ ] Form Validation
* create( Election election)
* election null
* election Name (null, empty)
* election id (>0)
* taluk id (>0)
* booth Address (null, empty)
* end Date (>current date)
* create( Taluk taluk)
* id (>0)
- [ ] Business Validation
* check Election Already exists
* check the Taluk
#### Messages:
* Invalid Election object
* Invalid election Id input
* Invalid End Date input
* Election already exist
* Invalid Taluk object
* Invalid taluk Id

#### Flow:
```mermaid
graph TD;

A[Election Service: Create 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 Already Exists]

T -- Yes --> D[Election DAO: Create Election]
T -- No --> H[Throws Exception]

D --> E[Election Service: Election Created]

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.