fssa-batch3 / fssa-batch3/sec_b_boobalan.ravichandran__corejava_project_2
Update Price
- Dominant language
- Java
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
### Feature : Update Price
- [ ] Price table
- [ ] Price model
- [ ] Price DAO( create )
- [ ] Price service ( create )
#### Validations:
- [ ] Form Validation
* price object null
* product Id <=0
* price>=100 && price <=10000
- [ ] Business Validation(Price)
* Check whether the Product ID is available or not in the Product table
#### Messages:(Price)
* Invalid Price object
* Invalid product id
* Price should be between a minimum of 100 and a maximum of 10000.
* The product is not available.
#### Flow:
```mermaid
graph TD;
A(Argument Passed to PriceService: Update - Price Object and Product Id) --> B(Form Validation)
B--Valid--> C(Business Validation)
B--Invalid-->I(Throw Validation Exception)
C -- Valid --> E(Argument Passed to PriceDAO)
E --> F(Store Value in Database)
C -- Invalid --> H(Throw Validation Exception)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the PriceService update flow, then locate the Price model, Price DAO, and price table mentioned in the issue. Trace form and business validation for the price object, product ID, price range, and product existence before the DAO stores the value. Done means the update flow and listed validation messages behave as specified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, database
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100