1 package gboat2.attachment.model;
2
3
4
5
6
7
8 import java.util.Date;
9
10 import javax.persistence.Column;
11 import javax.persistence.Entity;
12 import javax.persistence.GeneratedValue;
13 import javax.persistence.Id;
14 import javax.persistence.Table;
15 import javax.persistence.Temporal;
16 import javax.persistence.TemporalType;
17 import javax.persistence.Transient;
18
19 import org.hibernate.annotations.GenericGenerator;
20
21
22
23
24
25
26
27 @Entity
28 @Table(name = "GB_T_ATTACHMENT")
29 public class Attachment implements java.io.Serializable {
30
31 private static final long serialVersionUID = 1L;
32
33
34
35
36
37 private String attachId;
38
39
40
41
42 private String belongId;
43
44
45
46
47 private String attachName;
48
49
50
51
52 private String attachType;
53
54
55
56
57 private String originalName;
58
59
60
61
62 private String savePath;
63
64
65
66
67 private String downloadUrl;
68
69
70
71
72 private Date uploadDate;
73
74
75 private String uploaderId;
76
77
78
79
80 private String validateCode;
81
82
83
84
85 private Long size;
86
87
88
89
90 private String changeId;
91
92
93
94
95 private String watermarkFailed;
96
97
98 private String configId;
99
100
101
102
103 private String required;
104
105 @Column(name = "CHANGE_ID", length = 40)
106 public String getChangeId() {
107 return changeId;
108 }
109
110 public void setChangeId(String changeId) {
111 this.changeId = changeId;
112 }
113
114 @Id
115 @GeneratedValue(generator = "generator")
116 @GenericGenerator(name = "generator", strategy = "uuid.hex")
117 @Column(name = "ATTACHMENT_ID", length = 40)
118 public String getAttachId() {
119 return this.attachId;
120 }
121
122 public void setAttachId(String attachId) {
123 this.attachId = attachId;
124 }
125
126 @Column(name = "BELONG_ID", length = 40)
127 public String getBelongId() {
128 return this.belongId;
129 }
130
131 public void setBelongId(String belongId) {
132 this.belongId = belongId;
133 }
134
135 @Column(name = "ATTACH_NAME", length = 300)
136 public String getAttachName() {
137 return this.attachName;
138 }
139
140 public void setAttachName(String attachName) {
141 this.attachName = attachName;
142 }
143
144 @Column(name = "ATTACH_TYPE", length = 200)
145 public String getAttachType() {
146 return this.attachType;
147 }
148
149 public void setAttachType(String attachType) {
150 this.attachType = attachType;
151 }
152
153 @Column(name = "ORIGINAL_NAME", length = 300)
154 public String getOriginalName() {
155 return this.originalName;
156 }
157
158 public void setOriginalName(String originalName) {
159 this.originalName = originalName;
160 }
161
162 @Column(name = "SAVE_PATH", length = 200)
163 public String getSavePath() {
164 return this.savePath;
165 }
166
167 public void setSavePath(String savePath) {
168 this.savePath = savePath;
169 }
170
171 @Column(name = "DOWNLOAD_URL", length = 200)
172 public String getDownloadUrl() {
173 return this.downloadUrl;
174 }
175
176 public void setDownloadUrl(String downloadUrl) {
177 this.downloadUrl = downloadUrl;
178 }
179
180 @Temporal(TemporalType.TIMESTAMP)
181 @Column(name = "UPLOAD_DATE", length = 16)
182 public Date getUploadDate() {
183 return this.uploadDate;
184 }
185
186 public void setUploadDate(Date uploadDate) {
187 this.uploadDate = uploadDate;
188 }
189
190 @Column(name = "VALIDATE_CODE", length = 128)
191 public String getValidateCode() {
192 return this.validateCode;
193 }
194
195 public void setValidateCode(String validateCode) {
196 this.validateCode = validateCode;
197 }
198
199 @Column(name = "FILE_SIZE", length = 16)
200 public Long getSize() {
201 return size;
202 }
203
204 public void setSize(Long size) {
205 this.size = size;
206 }
207
208 @Transient
209 public String getRequired() {
210 return required;
211 }
212
213 public void setRequired(String required) {
214 this.required = required;
215 }
216
217 @Column(name = "WATERMARK_FAILED", length = 3)
218 public String getWatermarkFailed() {
219 return watermarkFailed;
220 }
221
222 public void setWatermarkFailed(String watermarkFailed) {
223 this.watermarkFailed = watermarkFailed;
224 }
225
226 @Column(name = "CONFIG_ID", length = 40)
227 public String getConfigId() {
228 return configId;
229 }
230
231 public void setConfigId(String configId) {
232 this.configId = configId;
233 }
234
235 public void setUploaderId(String uploaderId) {
236 this.uploaderId = uploaderId;
237 }
238
239 @Column(name = "UPLOADER_ID", length = 300)
240 public String getUploaderId() {
241 return uploaderId;
242 }
243
244 }