fssa-batch3 / fssa-batch3/sec_b_kishore.sugumar__corejava_project_2
Update Product details
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
### Feature: Update Product details
#### Pre-requisites:
* Product table
* Product entity
* Product model
* Product Dao
* Product service
#### Validations:
* Form Validation
* product null
* name ( null, empty, pattern )
* description ( null, empty, pattern )
* used duration ( null, empty, pattern )
* product id ( null, empty, pattern )
* price (100000000< price >0)
* min price (100000000< price >0)
* used period (100 < price > 0)
* Business Validation
* product does exists or not
* Status is active
#### Message:
* Invalid product input
* Name can't null or empty
* Product id can't null or empty
* Description can't null or empty
* Used duration can't null or empty
* Invalid used duration length
* Price should between the limit 1 - 100000000
* Used period should between the limit 1 - 100
* product doesn't exists
#### Flow:
> Invalid occur when a product doesn't exist in the database or when the input provided doesn't meet the criteria.
```mermaid
graph TD;
A(Argument Passed to ProductService) --> B(Form Validation)
B--Valid--> C(Business Validation)
B--Invalid-->I(Throw Validation Exception)
C -- Valid --> D(Value Passed to productDAO for Update)
D --> E(Update value in Database)
C -- Invalid --> F(Throw Validation Error Response)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.