forked from liangrui1988/java-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBeanVail.java
More file actions
45 lines (33 loc) · 735 Bytes
/
Copy pathBeanVail.java
File metadata and controls
45 lines (33 loc) · 735 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
42
43
44
45
package com.huiwan.gdata.vail;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
public class BeanVail {
@NotNull
private String name;
@Length(min = 2, max = 6)
private String fullName;
@Max(value = 100)
private int age;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getFullName() {
return fullName;
}
public void setFullName(String fullName) {
this.fullName = fullName;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public void testMethod(int age,String name){
System.out.println("xx:"+age);
}
}