fssa-batch3 / fssa-batch3/sec_b_kishore.sugumar__corejava_project_2

Delete product

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: Delete product
#### Pre-requisites:
* Product table
* Product entity
* Product model
* Product Dao
* Product service

#### Validations:
* Form Validation
* product id ( null, empty, pattern )
* Business Validation
* product does exists or not
#### Message:
* Product id can't null or empty
* Product doesn't exists
#### Flow:
> Invalid Users occur when a user doesn't exist in the database or when the input provided doesn't meet the criteria.
```mermaid
graph TD;
A(Argument Passed to ProductService) --> B(Form Validation)
B--Valid--> C(Business Validation)
B--Invalid-->I(Throw Validation Exception)
C -- Valid --> D(Value Passed to ProductDAO to Update status inActive)
D --> E(Update status in Database)
C -- Invalid --> F(Throw Validation Error Response)
```

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.