-
Notifications
You must be signed in to change notification settings - Fork 344
Expand file tree
/
Copy pathTableInfo.java
More file actions
81 lines (75 loc) · 1.45 KB
/
Copy pathTableInfo.java
File metadata and controls
81 lines (75 loc) · 1.45 KB
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
package com.sjhy.plugin.entity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.intellij.database.psi.DbTable;
import lombok.Data;
import java.util.List;
/**
* 表信息
*
* @author makejava
* @version 1.0.0
* @since 2018/07/17 13:10
*/
@Data
public class TableInfo {
/**
* 原始对象
*/
@JsonIgnore
private DbTable obj;
/**
* 原始对象(从实体生成)
*
* Note: 实际类型是com.intellij.psi.PsiClass,为了避免velocity反射出现ClassNotFound,写为Object类型
*/
@JsonIgnore
private Object psiClassObj;
/**
* 表名(首字母大写)
*/
private String name;
/**
* 表名前缀
*/
private String preName;
/**
* 注释
*/
private String comment;
/**
* 模板组名称
*/
private String templateGroupName;
/**
* 所有列
*/
private List<ColumnInfo> fullColumn;
/**
* 主键列
*/
private List<ColumnInfo> pkColumn;
/**
* 其他列
*/
private List<ColumnInfo> otherColumn;
/**
* 保存的包名称
*/
private String savePackageName;
/**
* 保存路径
*/
private String savePath;
/**
* 保存的model名称
*/
private String saveModelName;
/**
* 参考的bean名
*/
private String referenceBean;
/**
* 保存的包名称
*/
private String saveFullPackageName;
}