1
hao
2025-05-20 8e24c6fea30d9b179375ee2893710cdec2443b13
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
package com.system.file.entity;
 
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;
 
import com.app.base.entity.BaseEntity;
 
@Table(
        name = "fs_file"
)
@Entity
@DynamicUpdate
public class FsFile extends BaseEntity {
    private static final long serialVersionUID = -5554295976916560513L;
    public static final String TABLE_NAME = "fs_file";
    protected Long pkFsCatalog;
    @Column(
            length = 150
    )
    protected String bsContentType;
    @Column(
            length = 25
    )
    protected String bsFileType;
    @Column(
            length = 220
    )
    protected String bsName;
    @Column(
            length = 220
    )
    protected String bsFileName;
    protected Long bsFileSize = 0L;
    @Column(
            length = 255
    )
    protected String bsFilePath;
    protected Integer bsIsValid;
    @ManyToOne
    @JoinColumn(
            name = "pkFsCatalog",
            insertable = false,
            updatable = false
    )
    @NotFound(
            action = NotFoundAction.IGNORE
    )
    protected FsCatalog catalog;
 
    public FsFile() {
        this.bsIsValid = 0;
    }
 
    public Long getPkFsCatalog() {
        return this.pkFsCatalog;
    }
 
    public void setPkFsCatalog(Long pkFsCatalog) {
        this.pkFsCatalog = pkFsCatalog;
    }
 
    public String getBsContentType() {
        return this.bsContentType;
    }
 
    public void setBsContentType(String bsContentType) {
        this.bsContentType = bsContentType;
    }
 
    public String getBsFileType() {
        return this.bsFileType;
    }
 
    public void setBsFileType(String bsFileType) {
        this.bsFileType = bsFileType;
    }
 
    public String getBsName() {
        return this.bsName;
    }
 
    public void setBsName(String bsName) {
        this.bsName = bsName;
    }
 
    public String getBsFileName() {
        return this.bsFileName;
    }
 
    public void setBsFileName(String bsFileName) {
        this.bsFileName = bsFileName;
    }
 
    public Long getBsFileSize() {
        return this.bsFileSize;
    }
 
    public void setBsFileSize(Long bsFileSize) {
        this.bsFileSize = bsFileSize;
    }
 
    public String getBsFilePath() {
        return this.bsFilePath;
    }
 
    public void setBsFilePath(String bsFilePath) {
        this.bsFilePath = bsFilePath;
    }
 
    public Integer getBsIsValid() {
        return this.bsIsValid;
    }
 
    public void setBsIsValid(Integer bsIsValid) {
        this.bsIsValid = bsIsValid;
    }
 
    public FsCatalog getCatalog() {
        return this.catalog;
    }
 
    public void setCatalog(FsCatalog catalog) {
        this.catalog = catalog;
    }
}