fssa-batch3 / fssa-batch3/sec_b_uthra.boopathy__corejava_project_2

Create type

Open
#9 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 :

Type is successfully created and the details are stored in database.

### Pre-requisites:- [ ] type DAO(create type)

- [ ] complete category table
- [ ] create type table
- [ ] type model
- [ ] type dao
- [ ] type service ( create )

#### Validations:

- [ ] Form Validation
* type null
* name ( null, empty, pattern )

- [ ] Business Validation
* Name Already exists

#### Messages:

* Type object cannot be null
* Name cannot be null or empty
* Name should be match with the given pattern
* Type already exists

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

```mermaid
graph TD;

A(Argument Passed to TypeService - Type Object) --> B(Form Validation) -- Valid --> C(Business Validation)
B -- Invalid --> G(Validation Exception)
C -- Valid --> D(Argument Passed to TypeDAO)
D --> E(Set is_active = false in Database)
C -- Invalid --> F(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.