diff --git a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfCascade.java b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfCascade.java new file mode 100644 index 0000000..7317e1b --- /dev/null +++ b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfCascade.java @@ -0,0 +1,57 @@ +package cn.estsh.i3plus.pojo.form.bean; + +import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn; +import cn.estsh.i3plus.pojo.base.bean.BaseBean; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiParam; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Table; +import javax.persistence.Transient; +import java.util.List; + +/** + * @Description : + * @Reference : + * @Author : Adair Peng + * @CreateDate : 2019-03-21 14:13 + * @Modify: + **/ +@Data +@Entity +@DynamicInsert +@DynamicUpdate +@EqualsAndHashCode(callSuper = true) +@Table(name="bf_cascade") +@Api(value="级联元素",description = "级联元素") +public class BfCascade extends BaseBean { + + @Column(name = "ELEMENT_ID") + @ApiParam(value = "对象元素ID", example = "-1") + @JsonSerialize(using = ToStringSerializer.class) + private Long elementId; + + @Column(name="CASCADE_NAME") + @ApiParam(value ="级联名称") + private String cascadeName; + + @Column(name="CASCADE_GRADE") + @ApiParam(value ="级联层级") + private Integer cascadeGrade; + + @Column(name="CASCADE_DESCRIPTION") + @ApiParam(value ="级联描述") + private String cascadeDescription; + + @Transient + @ApiParam(value = "元素详细") + @AnnoOutputColumn(hidden = true) + private List detailList; +} diff --git a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfCascadeDetail.java b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfCascadeDetail.java new file mode 100644 index 0000000..315d8e3 --- /dev/null +++ b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfCascadeDetail.java @@ -0,0 +1,69 @@ +package cn.estsh.i3plus.pojo.form.bean; + +import cn.estsh.i3plus.pojo.base.bean.BaseBean; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiParam; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Table; + +/** + * @Description : + * @Reference : + * @Author : Adair Peng + * @CreateDate : 2019-03-21 14:35 + * @Modify: + **/ +@Data +@Entity +@DynamicInsert +@DynamicUpdate +@EqualsAndHashCode(callSuper = true) +@Table(name="bf_cascade_detail") +@Api(value="级联元素明细",description = "级联元素") +public class BfCascadeDetail extends BaseBean { + + @Column(name = "CASCADE_ID") + @ApiParam(value = "级联ID", example = "-1") + @JsonSerialize(using = ToStringSerializer.class) + private Long cascade_id; + + @Column(name = "ELEMENT_ID") + @ApiParam(value = "对象元素ID", example = "-1") + @JsonSerialize(using = ToStringSerializer.class) + private Long elementId; + + @Column(name="ELEMENT_NAME") + @ApiParam(value ="元素名称") + private String elementName; + + @Column(name="DETAIL_GRADE") + @ApiParam(value ="当前级联层级") + private Integer detail_grade; + + @Column(name = "PARENT_ID") + @ApiParam(value = "父级ID", example = "-1") + @JsonSerialize(using = ToStringSerializer.class) + private Long parent_id; + + @Column(name = "ELEMENT_PROPERTY_VALUE_ID") + @ApiParam(value = "对象属性-元素属性ID", example = "-1") + @JsonSerialize(using = ToStringSerializer.class) + private Long elementPropertyValueId; + + @Column(name = "ELEMENT_PROPERTY_TEXT_ID") + @ApiParam(value = "显示属性-元素属性ID", example = "-1") + @JsonSerialize(using = ToStringSerializer.class) + private Long elementPropertyTextId; + + @Column(name="CASCADE_DETAIL_DESCRIPTION") + @ApiParam(value ="级联描述") + private String cascadeDetailDescription; +} diff --git a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfDataObject.java b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfDataObject.java index c7a668f..bba2a17 100644 --- a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfDataObject.java +++ b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfDataObject.java @@ -1,8 +1,11 @@ package cn.estsh.i3plus.pojo.form.bean; +import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn; import cn.estsh.i3plus.pojo.base.bean.BaseBean; +import cn.estsh.i3plus.pojo.base.enumutil.BlockFormEnumUtil; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; +import com.sun.xml.internal.bind.v2.model.core.ID; import io.swagger.annotations.Api; import io.swagger.annotations.ApiParam; import lombok.Data; @@ -13,6 +16,8 @@ import org.hibernate.annotations.DynamicUpdate; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; +import javax.persistence.Transient; +import java.util.List; /** * @Description : 数据对象 @@ -27,19 +32,39 @@ import javax.persistence.Table; @DynamicUpdate @EqualsAndHashCode(callSuper = true) @Table(name="bf_data_object") -@Api(value="数据对象表",description = "用来存储动态对象的相关属性") +@Api(value="数据对象",description = "原数据对象,最原始数据") public class BfDataObject extends BaseBean { - @Column(name="NAME") - @ApiParam(value ="中文名称") + @Column(name="OBJECT_NAME") + @ApiParam(value ="数据名称") private String objectName; - @Column(name="TABLE_NAME") - @ApiParam(value ="表名") - private String tableName; + @Column(name="OBJECT_CLASS_NAME") + @ApiParam(value ="中文名称") + private String objectClassName; + + @Column(name="OBJECT_TABLE_NAME") + @ApiParam(value ="数据表名") + private String objectTableName; + + @Column(name="OBJECT_CONTENT") + @ApiParam(value ="数据内容") + private String objectContent; + + @Column(name="OBJECT_TYPE") + @ApiParam(value ="数据类型") + private Integer objectType; + + @Column(name="OBJECT_COLUMN_NUM") + @ApiParam(value ="数据列名数量") + private Integer objectColumnNum; + + @Column(name="OBJECT_DESCRIPTION") + @ApiParam(value ="描述") + private String objectDescription; - @Column(name="is_view") - @ApiParam(value ="是否视图",access = "判断是否是视图,如果不是视图,则是表名") - //EnunmUtil.TRUE_OR_FALSE - private int isView; + @Transient + @ApiParam(value = "数据对象属性") + @AnnoOutputColumn(hidden = true) + private List propertyList; } diff --git a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfDataObjectProperty.java b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfDataObjectProperty.java index e67c549..5f6c074 100644 --- a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfDataObjectProperty.java +++ b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfDataObjectProperty.java @@ -26,28 +26,46 @@ import javax.persistence.Table; @DynamicInsert @DynamicUpdate @EqualsAndHashCode(callSuper = true) -@Table(name="bf_data_object_property") -@Api(value="数据对象属性表",description = "数据对象的属性明细表") +@Table(name = "bf_data_object_property") +@Api(value = "数据对象属性表", description = "数据对象的属性明细表") public class BfDataObjectProperty extends BaseBean { - @Column(name="DATA_OBJECT_ID") - @ApiParam(value ="数据对象ID" , example = "-1") - @JsonSerialize(using = ToStringSerializer.class) //外键关联数据对象主键 + @Column(name = "DATA_OBJECT_ID") + @ApiParam(value = "数据对象ID", example = "-1") + @JsonSerialize(using = ToStringSerializer.class) private Long dataObjectId; - @Column(name="PROP_NAME") - @ApiParam(value ="属性中文名称") - private String propName; + @Column(name="OBJECT_NAME_RDD") + @ApiParam(value ="数据对象名称") + private String objectNameRdd; + + @Column(name="OBJECT_TABLE_NAME_RDD") + @ApiParam(value ="数据表名称") + private String objectTableNameRdd; + + @Column(name="OBJECT_COLUMN_NAME") + @ApiParam(value ="数据对象列名称") + private String objectColumnName; + + @Column(name="OBJECT_COLUMN_TYPE") + @ApiParam(value ="数据对象类型") + private Integer objectColumnType; + + @Column(name="PROPERTY_NAME") + @ApiParam(value ="类属性名称") + private String propertyName; + + @Column(name="PROPERTY_CODE") + @ApiParam(value ="类属性名称") + private String propertyCode; - @Column(name="PROP_OBJECT_NAME") - @ApiParam(value ="对象中的属性名") - //在动态对象中的属性名 - private String propObjectName; + @Column(name="PROPERTY_TYPE") + @ApiParam(value ="属性类型") + private Integer propertyType; - @Column(name="PROP_COLUMN_NAME") - @ApiParam(value ="属性字段名") - //属性在数据库中的字段名 - private String propColumnName; + @Column(name="PROPERTY_DESCRIPTION") + @ApiParam(value ="属性描述") + private String propertyDescription; } diff --git a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfDataObjectRefer.java b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfDataObjectRefer.java deleted file mode 100644 index 4caa374..0000000 --- a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfDataObjectRefer.java +++ /dev/null @@ -1,43 +0,0 @@ -package cn.estsh.i3plus.pojo.form.bean; - -import cn.estsh.i3plus.pojo.base.bean.BaseBean; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiParam; -import lombok.Data; -import lombok.EqualsAndHashCode; -import org.hibernate.annotations.DynamicInsert; -import org.hibernate.annotations.DynamicUpdate; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Table; - -/** - * @Description : 数据对象 - * @Reference : - * @Author : alwaysfrin - * @CreateDate : 2019-02-27 10:53 - * @Modify: - **/ -@Data -@Entity -@DynamicInsert -@DynamicUpdate -@EqualsAndHashCode(callSuper = true) -@Table(name="bf_data_object") -@Api(value="数据对象表",description = "用来存储动态对象的相关属性") -public class BfDataObjectRefer extends BaseBean { - - @Column(name="NAME") - @ApiParam(value ="中文名称") - private String objectName; - - @Column(name="TABLE_NAME") - @ApiParam(value ="表名") - private String tableName; - - @Column(name="is_view") - @ApiParam(value ="是否视图",access = "判断是否是视图,如果不是视图,则是表名") - //EnunmUtil.TRUE_OR_FALSE - private int isView; -} diff --git a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfElement.java b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfElement.java new file mode 100644 index 0000000..942a339 --- /dev/null +++ b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfElement.java @@ -0,0 +1,88 @@ +package cn.estsh.i3plus.pojo.form.bean; + +import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn; +import cn.estsh.i3plus.pojo.base.bean.BaseBean; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; +import com.sun.xml.internal.bind.v2.model.core.ID; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiParam; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Table; +import javax.persistence.Transient; +import javax.transaction.Transactional; +import java.util.List; + +/** + * @Description : + * @Reference : + * @Author : Adair Peng + * @CreateDate : 2019-03-21 13:14 + * @Modify: + **/ +@Data +@Entity +@DynamicInsert +@DynamicUpdate +@EqualsAndHashCode(callSuper = true) +@Table(name = "BF_ELEMENT") +@Api(value = "对象元素基础", description = "元素基础表") +public class BfElement extends BaseBean { + + //外键关联数据对象主键 + @Column(name = "ELEMENT_INFO_ID") + @ApiParam(value = "对象元素明细ID", example = "-1") + @JsonSerialize(using = ToStringSerializer.class) + private Long elementInfoId; + + //外键关联数据对象主键 + @Column(name = "DATA_OBJECT_ID") + @ApiParam(value = "数据对象ID", example = "-1") + @JsonSerialize(using = ToStringSerializer.class) + private Long dataObjectId; + + @Column(name="ELEMENT_TYPE") + @ApiParam(value ="元素类型") + private Integer elementType; + + @Column(name="ELEMENT_NAME") + @ApiParam(value ="元素名称") + private String elementName; + + @Column(name="ELEMENT_ATTR_ID") + @ApiParam(value ="默认排序属性") + private String elementAttrId; + + @Column(name="ELEMENT_SORT_TYPE") + @ApiParam(value ="默认排序规则") + private String elementSortType; + + @Column(name="ELEMENT_CSS_STYLE") + @ApiParam(value ="元素样式") + private String elementCssStyle; + + @Column(name="ELEMENT_DESCRIPTION") + @ApiParam(value ="元素描述") + private String elementDescription; + + @Transient + @ApiParam(value = "数据对象") + @AnnoOutputColumn(hidden = true) + private BfDataObject dataObject; + + @Transient + @ApiParam(value = "元素表单") + @AnnoOutputColumn(hidden = true) + private BfElementGrid elementGrid; + + @Transient + @ApiParam(value = "元素树") + @AnnoOutputColumn(hidden = true) + private BfElementTree elementTree; +} diff --git a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfElementGrid.java b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfElementGrid.java new file mode 100644 index 0000000..c80b7d9 --- /dev/null +++ b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfElementGrid.java @@ -0,0 +1,63 @@ +package cn.estsh.i3plus.pojo.form.bean; + +import cn.estsh.i3plus.pojo.base.bean.BaseBean; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiParam; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Table; + +/** + * @Description : + * @Reference : + * @Author : Adair Peng + * @CreateDate : 2019-03-21 13:24 + * @Modify: + **/ +@Data +@Entity +@DynamicInsert +@DynamicUpdate +@EqualsAndHashCode(callSuper = true) +@Table(name = "BF_ELEMENT_GRID") +@Api(value = "对象元素表格", description = "对象元素表格") +public class BfElementGrid extends BaseBean { + + //外键关联数据对象主键 + @Column(name = "ELEMENT_ID") + @ApiParam(value = "对象元素ID", example = "-1") + @JsonSerialize(using = ToStringSerializer.class) + private Long elementId; + + @Column(name = "IS_LINE_SHOW_NUMBER") + @ApiParam(value = "显示行号") + private Integer isLineShowNumber; + + @Column(name = "IS_OBJECT_ADD") + @ApiParam(value = "是否新增") + private Integer isObjectAdd; + + @Column(name = "IS_OBJECT_EDIT") + @ApiParam(value = "是否编辑") + private Integer isObject_edit; + + @Column(name = "IS_OBJECT_DEL") + @ApiParam(value = "是否删除") + private Integer isObjectDel; + + @Column(name = "ELEMENT_TYPE") + @ApiParam(value = "是否查询") + private Integer elementType; + + @Column(name = "IS_OBJECT_FIND") + @ApiParam(value = "元素类型") + private Integer isObjectFind; + +} diff --git a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfElementProperty.java b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfElementProperty.java new file mode 100644 index 0000000..94dfe6d --- /dev/null +++ b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfElementProperty.java @@ -0,0 +1,119 @@ +package cn.estsh.i3plus.pojo.form.bean; + +import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn; +import cn.estsh.i3plus.pojo.base.bean.BaseBean; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiParam; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Table; +import javax.persistence.Transient; + +/** + * @Description : 数据对象 + * @Reference : + * @Author : alwaysfrin + * @CreateDate : 2019-02-27 10:53 + * @Modify: + **/ +@Data +@Entity +@DynamicInsert +@DynamicUpdate +@EqualsAndHashCode(callSuper = true) +@Table(name="bf_element_property") +@Api(value="对象元素属性",description = "对象元素属性 相当于数据对象属性的扩展") +public class BfElementProperty extends BaseBean { + + @Column(name = "ELEMENT_ID") + @ApiParam(value = "对象元素ID", example = "-1") + @JsonSerialize(using = ToStringSerializer.class) + private Long elementId; + + @Column(name = "OBJECT_ID") + @ApiParam(value = "数据对象ID", example = "-1") + @JsonSerialize(using = ToStringSerializer.class) + private Long objectId; + + @Column(name = "DATA_OBJECT_PROPERTY_ID") + @ApiParam(value = "数据对象属性ID", example = "-1") + @JsonSerialize(using = ToStringSerializer.class) + private Long dataObjectPropertyId; + + @Column(name="PROPERTY_NAME") + @ApiParam(value ="元素描述") + private String propertyName; + + @Column(name="PROPERTY_DEFAULT_VALUE") + @ApiParam(value ="元素描述") + private String propertyDefaultValue; + + @Column(name = "PROPERTY_VALUE_NOT_NULL") + @ApiParam(value = "是否必填") + private Integer propertyValueNotNull; + + @Column(name = "PROPERTY_IS_FIND") + @ApiParam(value = "是否查询条件") + private Integer propertyIsFind; + + @Column(name = "PROPERTY_SHOW_STATUS") + @ApiParam(value = "显示状态") + private Integer propertyShowStatus; + + @Column(name = "PROPERTY_INPUT_TXT") + @ApiParam(value = "输入提示") + private Integer propertyInputTxt; + + @Column(name = "PROPERTY_LENGTH") + @ApiParam(value = "属性长度") + private Integer propertyLength; + + @Column(name = "PROPERTY_ADD_STATUS") + @ApiParam(value = "新增可见状态") + private Integer propertyAddStatus; + + @Column(name = "PROPERTY_EDIT_STATUS") + @ApiParam(value = "编辑可见状态") + private Integer propertyEditStatus; + + @Column(name = "PROPERTY_IS_SORT") + @ApiParam(value = "是否可排序") + private Integer propertyIsSort; + + @Column(name = "PROPERTY_SORT") + @ApiParam(value = "显示顺序") + private Integer propertySort; + + @Column(name = "PROPERTY_CONTROL_TYPE") + @ApiParam(value = "控件类型") + private Integer propertyControlType; + + @Column(name = "PROPERTY_CONTROL_FORMAT") + @ApiParam(value = "控件显示格式") + private String propertyControlFormat; + + @Column(name = "PROPERTY_CONTROL_REF_ID") + @ApiParam(value = "控件引用RefId") + @JsonSerialize(using = ToStringSerializer.class) + private Long propertyControlRefId; + + @Column(name = "PROPERTY_DESCRIPTION") + @ApiParam(value = "属性描述") + private String propertyDescription; + + @Column(name="PROPERTY_CSS_STYLE") + @ApiParam(value ="元素样式") + private String propertyCssStyle; + + @Transient + @ApiParam(value = "对象属性信息") + @AnnoOutputColumn(hidden = true) + private BfDataObjectProperty objectProperty; +} diff --git a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfElementPropertyVirtual.java b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfElementPropertyVirtual.java new file mode 100644 index 0000000..01ccdb7 --- /dev/null +++ b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfElementPropertyVirtual.java @@ -0,0 +1,65 @@ +package cn.estsh.i3plus.pojo.form.bean; + +import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn; +import cn.estsh.i3plus.pojo.base.bean.BaseBean; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiParam; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Table; +import javax.persistence.Transient; +import java.util.List; + +/** + * @Description : + * @Reference : + * @Author : Adair Peng + * @CreateDate : 2019-03-21 14:02 + * @Modify: + **/ +@Data +@Entity +@DynamicInsert +@DynamicUpdate +@EqualsAndHashCode(callSuper = true) +@Table(name="bf_element_property_virtual") +@Api(value="对象元素虚拟属性",description = "对象元素虚拟属性") +public class BfElementPropertyVirtual extends BaseBean { + + @Column(name = "ELEMENT_ID") + @ApiParam(value = "对象元素ID", example = "-1") + @JsonSerialize(using = ToStringSerializer.class) + private Long elementId; + + @Column(name = "PROPERTY_VIRTUAL_TYPE") + @ApiParam(value = "虚拟元素类型") + private Integer propertyVirtualType; + + @Column(name = "PROPERTY_SHOW_FORMAT") + @ApiParam(value = "显示格式") + private String propertyShowFormat; + + @Column(name = "PROPERTY_LABEL_TEXT") + @ApiParam(value = "提示信息") + private String propertyLabelText; + + @Column(name = "PROPERTY_SORT") + @ApiParam(value = "显示顺序") + private Integer propertySort; + + @Column(name = "PROPERTY_DESCRIPTION") + @ApiParam(value = "属性描述") + private String propertyDescription; + + @Transient + @ApiParam(value = "虚拟属性列表") + @AnnoOutputColumn(hidden = true) + private List detailList; +} diff --git a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfElementTree.java b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfElementTree.java new file mode 100644 index 0000000..bb7beda --- /dev/null +++ b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfElementTree.java @@ -0,0 +1,58 @@ +package cn.estsh.i3plus.pojo.form.bean; + +import cn.estsh.i3plus.pojo.base.bean.BaseBean; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiParam; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Table; + +/** + * @Description : + * @Reference : + * @Author : Adair Peng + * @CreateDate : 2019-03-21 13:24 + * @Modify: + **/ +@Data +@Entity +@DynamicInsert +@DynamicUpdate +@EqualsAndHashCode(callSuper = true) +@Table(name = "BF_ELEMENT_TREE") +@Api(value = "对象元素基础", description = "元素基础表") +public class BfElementTree extends BaseBean { + + //外键关联数据对象主键 + @Column(name = "ELEMENT_ID") + @ApiParam(value = "对象元素ID", example = "-1") + @JsonSerialize(using = ToStringSerializer.class) + private Long elementId; + + @Column(name = "TREE_PARENT_ID") + @ApiParam(value = "父级属性ID") + private Integer treeParentId; + + @Column(name = "TREE_ATTR_NAME_ID") + @ApiParam(value = "显示属性ID") + private Integer treeAttrNameId; + + @Column(name = "TREE_ATTR_VALUE_ID") + @ApiParam(value = "取值属性ID") + private Integer treeAttrValueId; + + @Column(name="TREE_DEFAULT_DIRECTION") + @ApiParam(value ="树默认方向") + private Integer treeDefaultDirection; + + @Column(name = "TREE_IS_DIRECTION") + @ApiParam(value = "树是否开启切换方向") + private Integer treeIsDirection; +} diff --git a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfRefElementPropertyVirtualDetail.java b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfRefElementPropertyVirtualDetail.java new file mode 100644 index 0000000..2a2232e --- /dev/null +++ b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/bean/BfRefElementPropertyVirtualDetail.java @@ -0,0 +1,47 @@ +package cn.estsh.i3plus.pojo.form.bean; + +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiParam; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Table; + +/** + * @Description : + * @Reference : + * @Author : Adair Peng + * @CreateDate : 2019-03-21 14:08 + * @Modify: + **/ +@Data +@Entity +@DynamicInsert +@DynamicUpdate +@EqualsAndHashCode(callSuper = true) +@Table(name="bf_ref_element_property_virtual_detail") +@Api(value="对象元素虚拟属性",description = "对象元素虚拟属性") +public class BfRefElementPropertyVirtualDetail extends BfElementInfo { + + @Column(name = "ELEMENT_ID") + @ApiParam(value = "对象元素ID", example = "-1") + @JsonSerialize(using = ToStringSerializer.class) + private Long elementId; + + @Column(name = "element_property_virtual_id") + @ApiParam(value = "对象元素虚拟属性ID", example = "-1") + @JsonSerialize(using = ToStringSerializer.class) + private Long elementPropertyVirtualId; + + @Column(name = "element_property_id") + @ApiParam(value = "对象元素属性", example = "-1") + @JsonSerialize(using = ToStringSerializer.class) + private Long elementPropertyId; + +} diff --git a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfCascadeDetailRepository.java b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfCascadeDetailRepository.java new file mode 100644 index 0000000..88c012d --- /dev/null +++ b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfCascadeDetailRepository.java @@ -0,0 +1,14 @@ +package cn.estsh.i3plus.pojo.form.repository; + +import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository; +import cn.estsh.i3plus.pojo.form.bean.BfCascadeDetail; + +/** + * @Description : + * @Reference : + * @Author : Adair Peng + * @CreateDate : 2019-03-21 15:17 + * @Modify: + **/ +public interface BfCascadeDetailRepository extends BaseRepository { +} diff --git a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfCascadeRepository.java b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfCascadeRepository.java new file mode 100644 index 0000000..7a77863 --- /dev/null +++ b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfCascadeRepository.java @@ -0,0 +1,14 @@ +package cn.estsh.i3plus.pojo.form.repository; + +import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository; +import cn.estsh.i3plus.pojo.form.bean.BfCascade; + +/** + * @Description : + * @Reference : + * @Author : alwaysfrin + * @CreateDate : 2018-12-26 20:23 + * @Modify: + **/ +public interface BfCascadeRepository extends BaseRepository { +} diff --git a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfDataObjectPropertyRepository.java b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfDataObjectPropertyRepository.java new file mode 100644 index 0000000..d8124f5 --- /dev/null +++ b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfDataObjectPropertyRepository.java @@ -0,0 +1,14 @@ +package cn.estsh.i3plus.pojo.form.repository; + +import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository; +import cn.estsh.i3plus.pojo.form.bean.BfDataObjectProperty; + +/** + * @Description : + * @Reference : + * @Author : Adair Peng + * @CreateDate : 2019-03-21 15:23 + * @Modify: + **/ +public interface BfDataObjectPropertyRepository extends BaseRepository { +} diff --git a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfDataObjectRepository.java b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfDataObjectRepository.java new file mode 100644 index 0000000..1f97ef0 --- /dev/null +++ b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfDataObjectRepository.java @@ -0,0 +1,14 @@ +package cn.estsh.i3plus.pojo.form.repository; + +import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository; +import cn.estsh.i3plus.pojo.form.bean.BfDataObject; + +/** + * @Description : + * @Reference : + * @Author : Adair Peng + * @CreateDate : 2019-03-21 15:18 + * @Modify: + **/ +public interface BfDataObjectRepository extends BaseRepository { +} diff --git a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfElementGridRepository.java b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfElementGridRepository.java new file mode 100644 index 0000000..fc5a775 --- /dev/null +++ b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfElementGridRepository.java @@ -0,0 +1,14 @@ +package cn.estsh.i3plus.pojo.form.repository; + +import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository; +import cn.estsh.i3plus.pojo.form.bean.BfElementGrid; + +/** + * @Description : + * @Reference : + * @Author : Adair Peng + * @CreateDate : 2019-03-21 15:24 + * @Modify: + **/ +public interface BfElementGridRepository extends BaseRepository { +} diff --git a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfElementPropertyRepository.java b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfElementPropertyRepository.java new file mode 100644 index 0000000..484eb12 --- /dev/null +++ b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfElementPropertyRepository.java @@ -0,0 +1,14 @@ +package cn.estsh.i3plus.pojo.form.repository; + +import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository; +import cn.estsh.i3plus.pojo.form.bean.BfElementProperty; + +/** + * @Description : + * @Reference : + * @Author : Adair Peng + * @CreateDate : 2019-03-21 15:24 + * @Modify: + **/ +public interface BfElementPropertyRepository extends BaseRepository { +} diff --git a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfElementPropertyVirtualRepository.java b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfElementPropertyVirtualRepository.java new file mode 100644 index 0000000..02d1bee --- /dev/null +++ b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfElementPropertyVirtualRepository.java @@ -0,0 +1,14 @@ +package cn.estsh.i3plus.pojo.form.repository; + +import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository; +import cn.estsh.i3plus.pojo.form.bean.BfElementPropertyVirtual; + +/** + * @Description : + * @Reference : + * @Author : Adair Peng + * @CreateDate : 2019-03-21 15:26 + * @Modify: + **/ +public interface BfElementPropertyVirtualRepository extends BaseRepository { +} diff --git a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfElementRepository.java b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfElementRepository.java new file mode 100644 index 0000000..5f193f3 --- /dev/null +++ b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfElementRepository.java @@ -0,0 +1,14 @@ +package cn.estsh.i3plus.pojo.form.repository; + +import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository; +import cn.estsh.i3plus.pojo.form.bean.BfElement; + +/** + * @Description : + * @Reference : + * @Author : Adair Peng + * @CreateDate : 2019-03-21 15:24 + * @Modify: + **/ +public interface BfElementRepository extends BaseRepository { +} diff --git a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfElementTreeRepository.java b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfElementTreeRepository.java new file mode 100644 index 0000000..bf9d509 --- /dev/null +++ b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfElementTreeRepository.java @@ -0,0 +1,14 @@ +package cn.estsh.i3plus.pojo.form.repository; + +import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository; +import cn.estsh.i3plus.pojo.form.bean.BfElementTree; + +/** + * @Description : + * @Reference : + * @Author : Adair Peng + * @CreateDate : 2019-03-21 15:25 + * @Modify: + **/ +public interface BfElementTreeRepository extends BaseRepository { +} diff --git a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfRefElementPropertyVirtualDetailRepository.java b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfRefElementPropertyVirtualDetailRepository.java new file mode 100644 index 0000000..24bf239 --- /dev/null +++ b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/repository/BfRefElementPropertyVirtualDetailRepository.java @@ -0,0 +1,14 @@ +package cn.estsh.i3plus.pojo.form.repository; + +import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository; +import cn.estsh.i3plus.pojo.form.bean.BfRefElementPropertyVirtualDetail; + +/** + * @Description : + * @Reference : + * @Author : Adair Peng + * @CreateDate : 2019-03-21 15:25 + * @Modify: + **/ +public interface BfRefElementPropertyVirtualDetailRepository extends BaseRepository { +} diff --git a/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/sqlpack/FormHqlPack.java b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/sqlpack/FormHqlPack.java new file mode 100644 index 0000000..7802209 --- /dev/null +++ b/modules/i3plus-pojo-form/src/main/java/cn/estsh/i3plus/pojo/form/sqlpack/FormHqlPack.java @@ -0,0 +1,11 @@ +package cn.estsh.i3plus.pojo.form.sqlpack; + +/** + * @Description : + * @Reference : + * @Author : Adair Peng + * @CreateDate : 2019-03-21 15:16 + * @Modify: + **/ +public class FormHqlPack { +}