[测评系统]--测评系统核心代码库
linzhijie
2021-04-26 9843a613b41db35b05e048d3eacaf99253b57ce6
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
package com.ots.project.tool.gen.domain;
import com.ots.common.constant.GenConstants;
import com.ots.common.utils.StringUtils;
import com.ots.framework.web.domain.BaseEntity;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.util.List;
 
public class GenTable extends BaseEntity {
    private static final long serialVersionUID = 1L;
    
    private Long tableId;
    
    @NotBlank(message = "表名称不能为空")
    private String tableName;
    
    @NotBlank(message = "表描述不能为空")
    private String tableComment;
    
    @NotBlank(message = "实体类名称不能为空")
    private String className;
    
    private String tplCategory;
    
    @NotBlank(message = "生成包路径不能为空")
    private String packageName;
    
    @NotBlank(message = "生成模块名不能为空")
    private String moduleName;
    
    @NotBlank(message = "生成业务名不能为空")
    private String businessName;
    
    @NotBlank(message = "生成功能名不能为空")
    private String functionName;
    
    @NotBlank(message = "作者不能为空")
    private String functionAuthor;
    
    private GenTableColumn pkColumn;
    
    @Valid
    private List<GenTableColumn> columns;
    
    private String options;
    
    private String treeCode;
    
    private String treeParentCode;
    
    private String treeName;
    public Long getTableId() {
        return tableId;
    }
    public void setTableId(Long tableId) {
        this.tableId = tableId;
    }
    public String getTableName() {
        return tableName;
    }
    public void setTableName(String tableName) {
        this.tableName = tableName;
    }
    public String getTableComment() {
        return tableComment;
    }
    public void setTableComment(String tableComment) {
        this.tableComment = tableComment;
    }
    public String getClassName() {
        return className;
    }
    public void setClassName(String className) {
        this.className = className;
    }
    public String getTplCategory() {
        return tplCategory;
    }
    public void setTplCategory(String tplCategory) {
        this.tplCategory = tplCategory;
    }
    public String getPackageName() {
        return packageName;
    }
    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }
    public String getModuleName() {
        return moduleName;
    }
    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }
    public String getBusinessName() {
        return businessName;
    }
    public void setBusinessName(String businessName) {
        this.businessName = businessName;
    }
    public String getFunctionName() {
        return functionName;
    }
    public void setFunctionName(String functionName) {
        this.functionName = functionName;
    }
    public String getFunctionAuthor() {
        return functionAuthor;
    }
    public void setFunctionAuthor(String functionAuthor) {
        this.functionAuthor = functionAuthor;
    }
    public GenTableColumn getPkColumn() {
        return pkColumn;
    }
    public void setPkColumn(GenTableColumn pkColumn) {
        this.pkColumn = pkColumn;
    }
    public List<GenTableColumn> getColumns() {
        return columns;
    }
    public void setColumns(List<GenTableColumn> columns) {
        this.columns = columns;
    }
    public String getOptions() {
        return options;
    }
    public void setOptions(String options) {
        this.options = options;
    }
    public String getTreeCode() {
        return treeCode;
    }
    public void setTreeCode(String treeCode) {
        this.treeCode = treeCode;
    }
    public String getTreeParentCode() {
        return treeParentCode;
    }
    public void setTreeParentCode(String treeParentCode) {
        this.treeParentCode = treeParentCode;
    }
    public String getTreeName() {
        return treeName;
    }
    public void setTreeName(String treeName) {
        this.treeName = treeName;
    }
    public boolean isTree() {
        return isTree(this.tplCategory);
    }
    public static boolean isTree(String tplCategory) {
        return tplCategory != null && StringUtils.equals(GenConstants.TPL_TREE, tplCategory);
    }
    public boolean isCrud() {
        return isCrud(this.tplCategory);
    }
    public static boolean isCrud(String tplCategory) {
        return tplCategory != null && StringUtils.equals(GenConstants.TPL_CRUD, tplCategory);
    }
}