1
2
3
4
5 package gboat2.base.core.model;
6
7 import javax.persistence.Column;
8 import javax.persistence.Entity;
9 import javax.persistence.GeneratedValue;
10 import javax.persistence.Id;
11 import javax.persistence.Table;
12
13 import org.hibernate.annotations.GenericGenerator;
14
15
16
17
18
19
20
21
22
23 @Entity
24 @Table(name = "G2_T_PARAMETER")
25 public class Parameter {
26
27
28 private String id;
29
30
31 private String groupName;
32
33
34 private String code;
35
36
37 private String name;
38
39
40 private String value;
41
42
43 private String desc;
44
45
46 @Id
47 @GeneratedValue(generator = "generator")
48 @GenericGenerator(name = "generator", strategy = "uuid.hex")
49 @Column(name = "P_ID", unique = true, nullable = false, length = 40)
50 public String getId() {
51 return id;
52 }
53
54 public void setId(String id) {
55 this.id = id;
56 }
57
58 @Column(name = "GROUP_NAME", length = 300)
59 public String getGroupName() {
60 return groupName;
61 }
62
63 public void setGroupName(String groupName) {
64 this.groupName = groupName;
65 }
66
67 @Column(name = "NAME", length = 300)
68 public String getName() {
69 return name;
70 }
71
72
73 public void setName(String name) {
74 this.name = name;
75 }
76
77 @Column(name = "VALUE", length = 300)
78 public String getValue() {
79 return value;
80 }
81
82 public void setValue(String value) {
83 this.value = value;
84 }
85
86 @Column(name = "DESCRIPTION", length = 600)
87 public String getDesc() {
88 return desc;
89 }
90
91 public void setDesc(String desc) {
92 this.desc = desc;
93 }
94
95 @Column(name = "CODE", length = 300)
96 public String getCode() {
97 return code;
98 }
99
100 public void setCode(String code) {
101 this.code = code;
102 }
103 }