forked from Realhedin/topjava02
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAbstractUser.java
More file actions
41 lines (28 loc) · 826 Bytes
/
AbstractUser.java
File metadata and controls
41 lines (28 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package ru.javawebinar.topjava.util;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
/**
* GKislin
* 24.04.2015.
*/
public interface AbstractUser {
Integer getId();
void setId(Integer id);
@NotEmpty
String getName();
void setName(String password);
@Email
@NotEmpty
String getEmail();
void setEmail(String password);
@Size(min = 5, max = 64, message = " must between 5 and 64 characters")
String getPassword();
void setPassword(String password);
@Digits(fraction = 0, integer = 4)
@NotNull
int getCaloriesPerDay();
void setCaloriesPerDay(int caloriesPerDay);
}