Script.java
2.69 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
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
package com.hotent.runtime.model;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlTransient;
import com.hotent.base.constants.DataSourceConsts;
import com.hotent.base.datasource.DatabaseContext;
import com.hotent.base.util.StringUtil;
import org.apache.commons.lang.builder.ToStringBuilder;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hotent.base.entity.AutoFillModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* 对象功能:sys_script entity对象
* 开发公司:广州宏天软件有限公司
* 开发人员:helh
* 创建时间:2014-05-08 14:50:24
*/
@TableName("bpm_script")
@ApiModel(value = "MessageType",description = "常用脚本")
public class Script extends AutoFillModel<Script> implements Cloneable{
private static final long serialVersionUID = 1L;
@XmlTransient
@TableId("id_")
@ApiModelProperty(name="id",notes="主键")
protected String id;
@XmlAttribute(name = "name")
@TableField("NAME_")
@ApiModelProperty(name="name",notes="名称")
protected String name;
@XmlAttribute(name = "script")
@TableField("SCRIPT_")
@ApiModelProperty(name="script",notes="脚本")
protected String script;
@XmlAttribute(name = "category")
@TableField("CATEGORY_")
@ApiModelProperty(name="category",notes="脚本分类")
protected String category;
@XmlAttribute(name = "dsName")
@TableField("DS_NAME_")
@ApiModelProperty(name="dsName", notes="数据源名称")
protected String dsName ;
@XmlAttribute(name = "memo")
@TableField("MEMO_")
@ApiModelProperty(name="memo",notes="备注")
protected String memo;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getScript() {
return script;
}
public void setScript(String script) {
this.script = script;
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
public String getMemo() {
return memo;
}
public void setMemo(String memo) {
this.memo = memo;
}
public String getDsName() {
return dsName;
}
public void setDsName(String dsName) {
if (StringUtil.isEmpty(dsName)){
this.dsName=DataSourceConsts.LOCAL_DATASOURCE;
}else{
this.dsName = dsName;
}
}
public String toString()
{
return new ToStringBuilder(this)
.append("id", this.id)
.append("name", this.name)
.append("script", this.script)
.append("category", this.category)
.append("memo", this.memo)
.toString();
}
}