fssa-batch3 / fssa-batch3/sec_b_boobalan.ravichandran__corejava_project_2

List all the Products By Category Id

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

### Feature: List all the Products By Category Id
>Retrieve and display all products by category ID from the database.
#### Pre-requisites:
- [ ] Product table
- [ ] Product model
- [ ] Product DAO( find All Products By Category Id)
- [ ] Product service ( find All Products By Category Id)

#### Validations:
- [ ] Form Validation
* Id <= 0
- [ ] Business Validation
* Check whether the category is available in the Category table.

#### Messages:
* Invalid Category Id
* Category is not available in the category list.

#### Flow:
```mermaid
graph TD;
A(Argument Passed to ProductService: Find All Products By CategoryId - Category id) --> B(Form Validation)
B -- Valid --> C(Business Validation: Check whether the category ID is present in the Category table)
B -- Invalid --> I(Throw Validation Exception)
C -- Valid --> D(Argument Passed to ProductDAO)
D --> E(Retrieve all products by category ID from the database)
E --> F(Show the list of products)
C -- Invalid --> H(Throw 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.