-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClient.java
More file actions
44 lines (31 loc) · 774 Bytes
/
Copy pathClient.java
File metadata and controls
44 lines (31 loc) · 774 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
package example.client;
// You can use lombok to escape boilerplate code like get/set/toString
// @lombok.Data
public class Client {
private long id;
private String name;
// automatically converted from state column
private ClientState state;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ClientState getState() {
return state;
}
public void setState(ClientState state) {
this.state = state;
}
@Override
public String toString() {
return "Client(" + id + ", " + name + ", " + state + ")";
}
}