fssa-batch3 / fssa-batch3/sec_c_sec_c_hemanath.muralikrishnan__corejava_project_2
Product Module | Add Product
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
### Checklist
- [x] Product Model
- [x] Product Validator - add product
- [x] Product DAO - add product
- [x] Product Service - add product
### Estimated Time
8 hours
### Actual Time
- Product Model: 3 hours
- Product Validator: 4 hours
- Product DAO: 2 hours
- Product Service: 1 hour
### Progress
- Product Model: Created the Product class with required attributes and methods. Implemented data validation logic. [[Commit Link](https://github.com/fssa-batch3/sec_c_sec_c_hemanath.muralikrishnan__corejava_project_2/commit/e199470da5aaf2fab7926e8b7ad4a55d87f31a96)]
- Product Validator: Developed input validation functions to ensure the product data is accurate and complete. [[Commit Link](https://github.com/fssa-batch3/sec_c_sec_c_hemanath.muralikrishnan__corejava_project_2/commit/e199470da5aaf2fab7926e8b7ad4a55d87f31a96)]
- Product DAO: Set up the database connection. Implemented the 'add product' method to insert product data into the database. [[Commit Link](https://github.com/fssa-batch3/sec_c_sec_c_hemanath.muralikrishnan__corejava_project_2/commit/e199470da5aaf2fab7926e8b7ad4a55d87f31a96)]
- Product Service: Created the service layer to handle business logic. Added the 'add product' method to interact with the DAO and perform validation.[[Commit Link](https://github.com/fssa-batch3/sec_c_sec_c_hemanath.muralikrishnan__corejava_project_2/commit/e199470da5aaf2fab7926e8b7ad4a55d87f31a96)]
### Notes
- Validate the product fields carefully.
- Use try with resources in the DAO layer.
- Have the error message in a separate class file.
- Write test cases to validate the validation methods working for both valid and invalid user inputs.
- Don't throw generic exceptions throw user-defined exceptions.
- Don't worry about the user module. Just create a product module.
### Completion Steps
1. [X] Code review and testing
2. [X] Push the code to GitHub
3. [ ] Close this issue
### Labels
- Estimation
- Actual Time
- In Progress
- Completed
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.