add set required in PluginFactory
add set required in PluginFactory
This commit is contained in:
parent
c93b0319db
commit
63b5cdf688
|
@ -19,6 +19,7 @@ public class ParamInfo {
|
|||
private int id;
|
||||
private String name;
|
||||
private String lable;
|
||||
private String required;
|
||||
private ParamType paramType;
|
||||
private ParamsContainer paramsContainer;
|
||||
|
||||
|
@ -51,6 +52,15 @@ public class ParamInfo {
|
|||
this.lable = lable;
|
||||
}
|
||||
|
||||
@Column(name = "required")
|
||||
public String getRequired() {
|
||||
return required;
|
||||
}
|
||||
|
||||
public void setRequired(String required) {
|
||||
this.required = required;
|
||||
}
|
||||
|
||||
@OneToOne(cascade = CascadeType.ALL, orphanRemoval = true, fetch = FetchType.EAGER)
|
||||
@JoinColumn(name = "typeId", nullable = false)
|
||||
public ParamType getParamType() {
|
||||
|
|
|
@ -165,6 +165,8 @@ public class PluginEntityFactory {
|
|||
ParamInfo paramInfo = new ParamInfo();
|
||||
paramInfo.setLable(XmlParseHelper.getAttribute(paramElement, "label"));
|
||||
paramInfo.setName(XmlParseHelper.getAttribute(paramElement, "name"));
|
||||
paramInfo.setRequired(XmlParseHelper.getAttribute(paramElement,
|
||||
"required"));
|
||||
paramInfo.setParamType(ParamTypeFactory
|
||||
.createParamTypeInfo(XmlParseHelper
|
||||
.getSingleChild(paramElement)));
|
||||
|
|
Loading…
Reference in New Issue