fssa-batch3 / fssa-batch3/sec_b_mohammedirfan.rahamathulla__corejava_project_2

Create turf

Open
#4 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

Turf Story :
> Turf details created successfully.
#### Pre-requisites:
- [ ] Create Turf table
- [ ] Turf model
- [ ] Turf DAO (create)
- [ ] Turf SERVICE (create)

#### Form Validations:
- [ ] Form Validation
- [ ] Turf null
- [ ] email( null, empty, pattern )
- [ ] password( null, empty, pattern )
- [ ] owner name( null, empty, pattern )
- [ ] image (null, empty) // cant validate correct url.
- [ ] address( null, empty, pattern )
- [ ] area( null, empty, pattern )
- [ ] city( null, empty, pattern )
- [ ] name( null, empty, pattern )
- [ ] opening hours ( null, empty, pattern ) local date time
- [ ] closing hours ( null, empty, pattern ) local date time

#### Business Validation:
- turf owner email Already exists

### Messages :
* Turf object can not be null.
* id can not be .
* Address can not be null or empty.
* Area does not match the pattern.
* Area can not be null or empty.
* City can not be null or empty.
* city does not match with the pattern
* name cannot be null or empty.
* Name does not match the pattern.
* Opening hours can not null or empty.
* opening hours does not match with the pattern
* Closing hours can not null or empty.
* Closing hours does not match with the pattern
* Turf already exists

### Flow:
```mermaid
graph TD;
A(TurfService - Object turf) --> B(Form Validation) -- Valid --> C(Business Validation)
B -- Invalid --> H(Validation Exception)
C -- Valid --> D(Argument Passed to TurfDAO)
D --> F(Store Value in Database)
C -- Invalid --> G(Validation Exception)
```

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.