Last change
on this file was 9868304, checked in by ste08 <sjovanoska@…>, 4 months ago |
Frontend + some backend changes
|
-
Property mode
set to
100644
|
File size:
689 bytes
|
Rev | Line | |
---|
[57e58a3] | 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 |
|
---|
[9868304] | 24 | private String phone_number;
|
---|
| 25 |
|
---|
| 26 | public String getPhone_number() {
|
---|
| 27 | return phone_number;
|
---|
| 28 | }
|
---|
| 29 |
|
---|
| 30 | public void setPhone_number(String phone_number) {
|
---|
| 31 | this.phone_number = phone_number;
|
---|
| 32 | }
|
---|
[57e58a3] | 33 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.