fssa-batch3 / fssa-batch3/sec_b_karkuvelraj.murugan__corejava_project_2

Create product

Open
#2 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

#### Pre-requisites:
- [ ] create products table
- [ ] product model
- [ ] product service (create)
- [ ] product DAO (create)
- [ ] price model
- [ ] price service (create)
- [ ] price DAO(create)

#### validations:
- [ ] form validation
- product null
- name (null,empty)
- description (null,empty)
- description ( length, >= 10 && <= 1000)
- price (empty)
- price > 0 && price < 5000

#### Messages:

* Product cannot be null
* Product name cannot be null or empty
* Product description cannot be null or empty
* Price cannot be empty
* Price does not match the pattern

#### Flow:

```mermaid
graph TD;
A[Product Service: Create Product] --> B[Form Validation]
B --Valid --> C[Product DAO : Create Product]
C --> D[Price Service : Create Price]
D --> E("business Validation
(Product_id (exists )")
E-- Valid --> F[Price DAO : Create Price]
E-- Invalid --> G[Price Service :Product Price already exists]
F --> H[Price Service : Product created]
B -- Invalid--> g[Product Service : Invalid Product Details]

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.