1 package gboat2.base.dao.impl;
2
3 import java.util.Date;
4 import javax.persistence.Column;
5 import javax.persistence.Entity;
6 import javax.persistence.GeneratedValue;
7 import javax.persistence.Id;
8 import javax.persistence.Table;
9 import javax.persistence.Temporal;
10 import javax.persistence.TemporalType;
11 import org.hibernate.annotations.GenericGenerator;
12
13
14
15
16 @Entity
17 @Table(name = "t_group", catalog = "common")
18 public class TGroup implements java.io.Serializable {
19
20
21
22 private String id;
23 private String name;
24 private String code;
25 private Integer type;
26 private Date date;
27 private Double value;
28 private String flag;
29
30
31
32
33 public TGroup() {
34 }
35
36
37 public TGroup(String name) {
38 this.name = name;
39 }
40
41
42 public TGroup(String name, String code, Integer type, Date date, Double value, String flag) {
43 this.name = name;
44 this.code = code;
45 this.type = type;
46 this.date = date;
47 this.value = value;
48 this.flag = flag;
49 }
50
51
52 @GenericGenerator(name = "generator", strategy = "uuid.hex")
53 @Id
54 @GeneratedValue(generator = "generator")
55 @Column(name = "id", unique = true, nullable = false, length = 40)
56 public String getId() {
57 return this.id;
58 }
59
60 public void setId(String id) {
61 this.id = id;
62 }
63
64 @Column(name = "name", nullable = false, length = 20)
65 public String getName() {
66 return this.name;
67 }
68
69 public void setName(String name) {
70 this.name = name;
71 }
72
73 @Column(name = "code", length = 50)
74 public String getCode() {
75 return this.code;
76 }
77
78 public void setCode(String code) {
79 this.code = code;
80 }
81
82 @Column(name = "type")
83 public Integer getType() {
84 return this.type;
85 }
86
87 public void setType(Integer type) {
88 this.type = type;
89 }
90
91 @Temporal(TemporalType.DATE)
92 @Column(name = "date", length = 10)
93 public Date getDate() {
94 return this.date;
95 }
96
97 public void setDate(Date date) {
98 this.date = date;
99 }
100
101 @Column(name = "value", precision = 22, scale = 0)
102 public Double getValue() {
103 return this.value;
104 }
105
106 public void setValue(Double value) {
107 this.value = value;
108 }
109
110 @Column(name = "flag", length = 1)
111 public String getFlag() {
112 return this.flag;
113 }
114
115 public void setFlag(String flag) {
116 this.flag = flag;
117 }
118
119 }