-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMember.java
More file actions
35 lines (28 loc) · 709 Bytes
/
Member.java
File metadata and controls
35 lines (28 loc) · 709 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
package DbAnnotation;
@DBTable(name = "MEMBER")
public class Member {
@SqlString(value=30)String firstName;
@SqlString(value = 30)String lastName;
@SqlInteger Integer age;
@SqlString(value = 30,constraints = @Constraints(primaryKey = true))String handle;
static int memeberCount;
@Override
public String toString() {
return handle;
}
public String getFirstName() {
return firstName;
}
public String getLastName() {
return lastName;
}
public Integer getAge() {
return age;
}
public String getHandle() {
return handle;
}
public static int getMemeberCount() {
return memeberCount;
}
}