fssa-batch3 / fssa-batch3/sec_b_uthra.boopathy__corejava_project_2
Create category
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
### User story :
Category created and successfully category details stored in database.
### Pre-requisites:- [ ] category DAO(create category)
- [ ] category table
- [ ] category model
- [ ] category DAO
- [ ] category service ( create )
#### Validations:
- [ ] Form Validation
* category null
* name ( null, empty, pattern )
- [ ] Business Validation
* Category name Already exists
#### Messages:
* Category object cannot be null
* Name cannot be null or empty
* Name should be match with the given pattern
* Category already exists
#### Flow:
> Invalid When a category's name is already in use or when the input provided does not meet the criteria, categories arise.
```mermaid
graph TD;
A(CategoryService - Category Object) --> B(Form Validation) -- Valid --> C(Business Validation)
B -- Invalid --> G(Validation Exception)
C -- Valid --> D(Argument Passed to CategoryDAO)
D --> E(Store Value in Database)
C -- Invalid --> F(Validation Exception)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.