Last change
on this file since a70b5a4 was 57e58a3, checked in by ste08 <sjovanoska@…>, 4 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
510 bytes
|
Line | |
---|
1 | package com.example.skychasemk.dto;
|
---|
2 |
|
---|
3 | import jakarta.validation.constraints.Email;
|
---|
4 | import jakarta.validation.constraints.NotBlank;
|
---|
5 | import jakarta.validation.constraints.Size;
|
---|
6 | import lombok.Data;
|
---|
7 |
|
---|
8 | @Data
|
---|
9 | public class ApplicationUserDTO {
|
---|
10 |
|
---|
11 | @NotBlank
|
---|
12 | private String name;
|
---|
13 |
|
---|
14 | @NotBlank
|
---|
15 | private String surname;
|
---|
16 |
|
---|
17 | @Email
|
---|
18 | @NotBlank
|
---|
19 | private String email;
|
---|
20 |
|
---|
21 | @Size(min = 6, message = "Password must be at least 6 characters long")
|
---|
22 | private String password;
|
---|
23 |
|
---|
24 | private String phoneNumber;
|
---|
25 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.