1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package sample.mybatis.freemarker.domain;
17
18 import java.io.Serializable;
19
20
21
22
23 public class City implements Serializable {
24
25 private static final long serialVersionUID = 1L;
26
27 private Long id;
28
29 private String name;
30
31 private String state;
32
33 private String country;
34
35 public Long getId() {
36 return this.id;
37 }
38
39 public void setId(Long id) {
40 this.id = id;
41 }
42
43 public String getName() {
44 return this.name;
45 }
46
47 public void setName(String name) {
48 this.name = name;
49 }
50
51 public String getState() {
52 return this.state;
53 }
54
55 public void setState(String state) {
56 this.state = state;
57 }
58
59 public String getCountry() {
60 return this.country;
61 }
62
63 public void setCountry(String country) {
64 this.country = country;
65 }
66
67 @Override
68 public String toString() {
69 return getId() + "," + getName() + "," + getState() + "," + getCountry();
70 }
71
72 }