1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.ibatis.submitted.keygen;
17
18
19 public class NpeCountry {
20 private Integer id;
21 private String countryname;
22 private String countrycode;
23
24 public NpeCountry() {
25 }
26
27 public NpeCountry(String countryname, String countrycode) {
28 this.countryname = countryname;
29 this.countrycode = countrycode;
30 }
31
32 public Integer getId() {
33 return id;
34 }
35
36 public void setId(Integer id) {
37 this.id = id;
38 }
39
40 public String getCountryname() {
41 return countryname;
42 }
43
44 public void setCountryname(String countryname) {
45 this.countryname = countryname;
46 }
47
48 public String getCountrycode() {
49 return countrycode;
50 }
51
52 public void setCountrycode(String countrycode) {
53 this.countrycode = countrycode;
54 }
55
56 @Override
57 public boolean equals(Object o) {
58 if (this == o) {
59 return true;
60 }
61 if (o == null || getClass() != o.getClass()) {
62 return false;
63 }
64 NpeCountry other = (NpeCountry) o;
65
66 return id.equals(other.id);
67 }
68
69 @Override
70 public int hashCode() {
71
72 return id.hashCode();
73 }
74 }