fssa-batch3 / fssa-batch3/sec_b_meena.subramanian__corejava_project_2

Create Product

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

#### User Story:
> Product created Successfully and the user details will be stored in database.

#### Pre-requisites:
- [ ] Create Category table
- [ ] Category model
- [ ] Category DAO(findAll ,findById)
- [ ] Category service(findAll ,findById)
- [ ] Create product table
- [ ] product model
- [ ] product DAO(create)
- [ ] Product Service( create )

#### Validations:
- [ ] Form Validation
* Product( null or empty )
* Name (null, empty, pattern)
* Description (null, empty)
* Price <= 0

#### Messages:
* Product object Can not be null
* Name can not be null or empty
* Description can not be null or empty
* price cannot be zero or negetive

#### Flow:
> Invalid When a category's name is already in use or when the input provided does not meet the criteria, categories arise.
```mermaid

graph TD;A(ProductService - Category Product) --> B(Form Validation) -- Valid --> C(Business Validation)
B -- Invalid --> H(Validation Exception)
C -- Valid --> D(Argument Passed to UserDAO)
D --> F(Store Value in Database)
C -- Invalid --> E(Validation Exception)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.