User will get all the products by the Sub-category-id
Pre-requisites :
[x] complete feature 1 - create Product
[x] Create Sub-Category table
[x] Subcategory DAO (find all), (find by id)
[x] Subcategory service (find all), (find by id)
[x] Create Product table
[x] Product DAO ( find all products by Sub-category-id)
[x] Product service ( find all products by Sub-category-id)
Validations:
[x] Form validation
Sub-category-id <= 0
[x] business validation
Sub-category does not exists
Messages:
Sub-category id should not be less than or equal to 0
Sub-category does not exists
Flow:
graph TD;
A[Product Service: Find all products by Sub-category_id] --> B[Form Validation]
B -- Valid--> C[business validaton] -- Valid --> D["Product Dao : Find all products by Sub-category_id"]
C -- Invalid --> F["Validation Exception [Product Service : Sub-category does not exist]"]
B -- Invalid --> G["Validation Exception [Product Service : Invalid Sub-category_id]"]
User story :
Pre-requisites :
Validations:
[x] Form validation
[x] business validation
Messages:
Flow: