fssa-batch3 / fssa-batch3/sec_b_uthra.boopathy__corejava_project_2

Update category

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

### User story :

Category deatils are successfully updated and stored in databse.

### Pre-requisites:- [ ] category DAO(update category)

- [ ] complete feature 4 - create category
- [ ] category dao ( create )
- [ ] category service ( create )

#### Validations:

- [ ] Form Validation
* id (less than 0)
* name ( null, empty, pattern )

- [ ] Business Validation
* Check whether the id exist

#### Messages:
* Id cannot be 0 or in negative
* Name cannot be null or empty
* Name should be match with the given pattern
* Category id does not exists

#### Flow:
> Invalid When a category's name is not in use or when the input provided does not meet the criteria, categories arise.

```mermaid
graph TD;

A(CategoryService - int id, String name) --> 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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.