1
2
3
4
5 package gboat2.attachment.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 @Entity
22 @Table(name = "GB_T_ATTACH_CONFIG")
23 public class AttachConfig {
24
25
26 private String configId;
27
28
29 private String moduleName;
30
31
32 private String attachCode;
33
34
35 private String attachType;
36
37
38 private String required = "false";
39
40
41 private String avaliable = "false";
42
43
44 private Integer maxFileCount = -1;
45
46
47 private String fileFilters;
48
49
50
51
52 private float attachOrder;
53
54
55 private String description;
56
57 @Id
58 @GenericGenerator(name = "generator", strategy = "uuid.hex")
59 @GeneratedValue(generator = "generator")
60 @Column(name = "CONFIG_ID", length = 40)
61 public String getConfigId() {
62 return configId;
63 }
64
65 public void setConfigId(String configId) {
66 this.configId = configId;
67 }
68
69 @Column(name = "ATTACH_CODE", length = 100)
70 public String getAttachCode() {
71 return attachCode;
72 }
73
74 public void setAttachCode(String attachCode) {
75 this.attachCode = attachCode;
76 }
77
78 @Column(name = "ATTACH_TYPE", length = 150)
79 public String getAttachType() {
80 return attachType;
81 }
82
83 public void setAttachType(String attachType) {
84 this.attachType = attachType;
85 }
86
87 @Column(name = "REQUIRED", length = 10)
88 public String getRequired() {
89 return required;
90 }
91
92 public void setRequired(String required) {
93 this.required = required;
94 }
95
96 @Column(name = "AVALIABLE", length = 10)
97 public String getAvaliable() {
98 return avaliable;
99 }
100
101 public void setAvaliable(String avaliable) {
102 this.avaliable = avaliable;
103 }
104
105 @Column(name = "DESCRIPTION", length = 100)
106 public String getDescription() {
107 return description;
108 }
109
110 public void setDescription(String description) {
111 this.description = description;
112 }
113
114 @Column(name = "MODULE_NAME", length = 150)
115 public String getModuleName() {
116 return moduleName;
117 }
118
119 public void setModuleName(String moduleName) {
120 this.moduleName = moduleName;
121 }
122
123 @Column(name = "ATTACH_ORDER", precision = 20, scale = 4)
124 public float getAttachOrder() {
125 return attachOrder;
126 }
127
128 public void setAttachOrder(float attachOrder) {
129 this.attachOrder = attachOrder;
130 }
131
132 @Column(name = "MAX_FILE_COUNT")
133 public Integer getMaxFileCount() {
134 return maxFileCount;
135 }
136
137 public void setMaxFileCount(Integer maxFileCount) {
138 this.maxFileCount = maxFileCount;
139 }
140
141 @Column(name = "FILE_FILTERS", length = 100)
142 public String getFileFilters() {
143 return fileFilters;
144 }
145
146 public void setFileFilters(String fileFilters) {
147 this.fileFilters = fileFilters;
148 }
149
150 }