1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package com.hp.cmsz.entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
/**
* gzfx_failure_attachment_info_t表对应的实体类
*
* @author Liu Ying
*
*/
@Entity
@Table(name = "gzfx_failure_attachment_info_t")
public class FailureAttachment{
private Long failureAttachmentId;//故障附件ID
private Long failureId;//故障ID
private String failureAttachmentFileName;//故障附件名称
private String isPicture;//是否为图片
@Id
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="FailureAttachmentSequence")
@SequenceGenerator(name = "FailureAttachmentSequence", sequenceName = "gzfx_failure_attachment_info_t_seq", allocationSize=1)
public Long getFailureAttachmentId() {
return failureAttachmentId;
}
public void setFailureAttachmentId(Long failureAttachmentId) {
this.failureAttachmentId = failureAttachmentId;
}
public Long getFailureId() {
return failureId;
}
public void setFailureId(Long failureId) {
this.failureId = failureId;
}
public String getFailureAttachmentFileName() {
return failureAttachmentFileName;
}
public void setFailureAttachmentFileName(String failureAttachmentFileName) {
this.failureAttachmentFileName = failureAttachmentFileName;
}
public String getIsPicture() {
return isPicture;
}
public void setIsPicture(String isPicture) {
this.isPicture = isPicture;
}
}