1 package booking.model.entity;
2
3 import java.util.Date;
4
5 import javax.validation.constraints.NotNull;
6 import javax.validation.constraints.Size;
7
8 public class UserTO {
9
10 Long id;
11
12 @NotNull
13 @Size(max = 1)
14 String sex;
15
16 @NotNull
17 @Size(max = 10)
18 String alias;
19
20 @NotNull
21 @Size(max = 50)
22 String name;
23
24 @NotNull
25 @Size(max = 100)
26 String surname;
27
28 @NotNull
29 Long phone;
30
31 @NotNull
32 @Size(max = 100)
33 String email;
34
35 @NotNull
36 @Size(max = 100)
37 String password;
38
39 @NotNull
40 @Size(max = 10)
41 String level;
42
43 @NotNull
44 int loginAttempts = 3;
45
46 String recoveryPasswordHash;
47
48 Date recoveryPasswordTimestamp;
49
50
51
52
53 public String getRecoveryPasswordHash() {
54 return recoveryPasswordHash;
55 }
56
57
58
59
60
61 public void setRecoveryPasswordHash(String recoveryPasswordHash) {
62 this.recoveryPasswordHash = recoveryPasswordHash;
63 }
64
65
66
67
68 public Date getRecoveryPasswordTimestamp() {
69 return recoveryPasswordTimestamp;
70 }
71
72
73
74
75
76 public void setRecoveryPasswordTimestamp(Date recoveryPasswordTimestamp) {
77 this.recoveryPasswordTimestamp = recoveryPasswordTimestamp;
78 }
79
80
81
82
83 public int getLoginAttempts() {
84 return loginAttempts;
85 }
86
87
88
89
90
91 public void setLoginAttempts(int loginAttempts) {
92 this.loginAttempts = loginAttempts;
93 }
94
95
96
97
98 public String getLevel() {
99 return level;
100 }
101
102
103
104
105
106 public void setLevel(String level) {
107 this.level = level;
108 }
109
110
111
112
113 public String getSex() {
114 return sex;
115 }
116
117
118
119
120
121 public void setSex(String sex) {
122 this.sex = sex;
123 }
124
125
126
127
128 public String getAlias() {
129 return alias;
130 }
131
132
133
134
135
136 public void setAlias(String alias) {
137 this.alias = alias;
138 }
139
140
141
142
143 public String getName() {
144 return name;
145 }
146
147
148
149
150
151 public void setName(String name) {
152 this.name = name;
153 }
154
155
156
157
158 public String getSurname() {
159 return surname;
160 }
161
162
163
164
165
166 public void setSurname(String surname) {
167 this.surname = surname;
168 }
169
170
171
172
173 public Long getPhone() {
174 return phone;
175 }
176
177
178
179
180
181 public void setPhone(Long phone) {
182 this.phone = phone;
183 }
184
185
186
187
188 public String getEmail() {
189 return email;
190 }
191
192
193
194
195
196 public void setEmail(String email) {
197 this.email = email;
198 }
199
200
201
202
203 public String getPassword() {
204 return password;
205 }
206
207
208
209
210
211 public void setPassword(String password) {
212 this.password = password;
213 }
214
215
216
217
218 public Long getId() {
219 return id;
220 }
221
222
223
224
225
226 public void setId(Long id) {
227 this.id = id;
228 }
229 }