1 package gboat2.base.dao.impl;
2
3 import javax.persistence.Column;
4 import javax.persistence.Entity;
5 import javax.persistence.GeneratedValue;
6 import javax.persistence.Id;
7 import javax.persistence.Table;
8 import org.hibernate.annotations.GenericGenerator;
9
10
11
12
13 @Entity
14 @Table(name = "C_CITY")
15 public class CCity implements java.io.Serializable {
16
17
18
19 private String cityid;
20 private String citycode;
21 private String cityname;
22 private String citytype;
23 private String provice;
24
25
26
27
28 public CCity() {
29 }
30
31
32 public CCity(String citycode, String cityname, String citytype, String provice) {
33 this.citycode = citycode;
34 this.cityname = cityname;
35 this.citytype = citytype;
36 this.provice = provice;
37 }
38
39
40 @GenericGenerator(name = "generator", strategy = "uuid.hex")
41 @Id
42 @GeneratedValue(generator = "generator")
43 @Column(name = "CITYID", unique = true, nullable = false, length = 40)
44 public String getCityid() {
45 return this.cityid;
46 }
47
48 public void setCityid(String cityid) {
49 this.cityid = cityid;
50 }
51
52 @Column(name = "CITYCODE", length = 20)
53 public String getCitycode() {
54 return this.citycode;
55 }
56
57 public void setCitycode(String citycode) {
58 this.citycode = citycode;
59 }
60
61 @Column(name = "CITYNAME", length = 80)
62 public String getCityname() {
63 return this.cityname;
64 }
65
66 public void setCityname(String cityname) {
67 this.cityname = cityname;
68 }
69
70 @Column(name = "CITYTYPE", length = 20)
71 public String getCitytype() {
72 return this.citytype;
73 }
74
75 public void setCitytype(String citytype) {
76 this.citytype = citytype;
77 }
78
79 @Column(name = "PROVICE", length = 10)
80 public String getProvice() {
81 return this.provice;
82 }
83
84 public void setProvice(String provice) {
85 this.provice = provice;
86 }
87
88 }