fssa-batch3 / fssa-batch3/sec_b_meena.subramanian__corejava_project_2

ListAllProductByCategory

Open
#8 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:
> User will get all the products by category_id.

#### Pre-requisites:
- [ ] Category table
- [ ] Category model
- [ ] Category DAO(findAll,findById)
- [ ] Category service(findAll,findById)
- [ ] Product table
- [ ] Product model
- [ ] Product DAO( find All Products By Category Id)
- [ ] Product service ( find All Products By Category Id)

#### Validations:
- [ ] Form Validation
* categoryId <= 0
- [ ] Business Validation
* check whether the CategoryId is available in the category table

#### Messages:
* invalid categoryId
* CategoryId does not exists

#### Flow:
```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(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.