fssa-batch3 / fssa-batch3/sec_b_inbalokesh.esakkipandi__corejava_project_2

Update user

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

## Module: User

- [ ] Create User table
- [ ] Create User model
### Feature 2: Update User

#### User Story
Existing User can update his details

#### Pre-requisites:

- [ ] User DAO (update)
- [ ] User Service (update)

#### Validations:

- [ ] Form Validation
- id <= 0
- User null
- name (null, empty, pattern)
- password (null, empty, pattern)

- [ ] Business Validation
- Check Id is present

#### Messages:
- [ ] User cannot be null
- [ ] Name cannot be null or empty
- [ ] password cannot be null or empty
- [ ] User Id cannot be zero or below zero
- [ ] Invalid String Pattern
- [ ] Password does not match the requested pattern
- [ ] User not found

#### Flow:
```mermaid
graph TD;
A["User Service: Update Existing User"] --> B["Form Validation"]-- Valid --> C{Business Validation}
B -- Invalid--> G["Validation Exception"]
C -- Valid --> D["Update User"]
C -- Invalid --> F["Validation Exception"]
D --> E["User Details Updated"]
```

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.