fssa-batch3 / fssa-batch3/sec_b_vignesh.ramachandran__corejava_project_2
FindByDishId
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
### Feature 4: FindBy Dish Id
#### Admin story
Admin can find Dish by dish_id.
#### Pre-requisites:
- Implement Category_Dish Service(findById)- int dish_id
- Implement Category_Dish DAO(findById)- int dish_id
- Implement Dish Service(findById)- int dish_id
- Implement Dish DAO(findById)- int dish_id
#### Validation
- [ ] Form Validation
- id <=0
- [ ] Business Validation
- Check dish_id is in the table or not
#### Flow:
```mermaid
graph TD;
A["Dish Service: findByDishId(dish_id)"] -->
B["Input validation"]
B -- Valid --> B1["Business Validation"]
B -- Invalid --> B2["Validation Exception: Invalid Input"]
B1 --> B3["Category_Dish Service: findByDishId(dish_id)"]
B3 --> C["Check whether dish-id is in the table or not"]
C -- Yes --> D["Dish DAO: findByDishId(dish_id)"]
C -- No --> D1["Validation Exception: dish_id not found"]
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.