fssa-batch3 / fssa-batch3/sec_b_boobalan.ravichandran__corejava_project_2
Update Product
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
### Feature : Update Product
>Update the product details in a database.
#### Pre-requisites:
- [ ] Complete create feature 1
- [ ] Product DAO( update )
- [ ] Product service ( update )
#### Validations:
- [ ] Form Validation
* Id <= 0
* Product null
* Product Description ( null, empty )
* Product quantity unit ( null, empty )
* Product Benefits ( null, empty )
* Product Application ( null, empty )
- [ ] Business Validation
* Check whether the ID is exists or not
#### Messages:
* Invalid Product input
* Invalid product id
* quantity unit cannot be null or empty
* description cannot be null or empty
* benefits cannot be null or empty
* Application cannot be null or empty
* Product ID not found
#### Flow:
```mermaid
graph TD;
A(Argument Passed to ProductService: Update - Product Object and Id) --> B(Form Validation)
B--Valid--> C(Business Validation)
B--Invalid-->I(Throw Validation Exception)
C -- Valid --> E(Argument Passed to ProductDAO)
E --> F(Store Value in Database)
C -- Invalid --> H(Throw Validation Exception)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.