fssa-batch3 / fssa-batch3/sec_b_meena.subramanian__corejava_project_2

Delete Product

Open
#6 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 :

> The product will be deleted from database.

### Pre-requisites:
- [ ] complete feature 1 - create Product
- [ ] Product dao ( delete )
- [ ] Product service ( delete )

#### Validations:

- [ ] Form Validation
* productId <= 0

- [ ] Business Validation
* Check whether the productId exists in the product Table

#### Messages:

* invalid productId
* productId is not found

#### Flow:

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

```mermaid

graph TD;

A(Argument Passed to Product Service - int id) --> B(Form Validation) -- Valid --> C(Business Validation)

B -- Invalid --> G(Validation Exception)

C -- Valid --> D(Argument Passed to Product DAO)

D --> E(Set is_active=false 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.