fssa-batch3 / fssa-batch3/sec_b_vignesh.ramachandran__corejava_project_2

FindAllCategoryByMenuId

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 1: FindAll Category By Menu id
#### Admin story
Admin can see all Category details by menu_id.
#### Pre-requisites:
- Implements Category_Dish Service(findCategoryByMenuId( ))
- Implement Category_Dish DAO(findCategoryByMenuId( ))
- Implements Category Service(getAll( ))
- Implement Category DAO(findAll( ))

#### Validation
- [ ] Form Validation
- menu_id <= 0
- [ ] Business Validation
- check menu_id is in the table or not

#### Messages
- [ ] Invalid menu_id
- [ ] menu_id not found

#### Flow:
```mermaid
graph TD;
A["Category_Dish Service: findCategoryByMenuId(int menu_id)"] --> B["Form Validation"]
B -- Valid --> C["Business Validation"]
B -- Invalid --> C1["Validation Exception: Invalid input"]
C --> D["Category_Dish Service: findCategoryByMenuId(int menu_id"]
D --> E["Check the menu_id is in the table or not"]
E -- Yes --> F["Get all category_id in the menu_id"]
E -- No --> F1["Validation Exception: menu_id not found"]
F --> G["Category DAO: findById(int category_id)"]
```

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.