VieweGroupDemo.java

@Entity
@DynamicInsert
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@DodoMenu(name = "Demo系统", level = DodoMenuLevel.LEVEL1, sortSeq = 7)
@DodoMenu(name = "基础演示", level = DodoMenuLevel.LEVEL2, sortSeq = 1)
@DodoMenu(name = "分组视图演示", level = DodoMenuLevel.LEVEL3, sortSeq = 12)
@DodoRight(name = "分组视图")
@DodoCodeGenerator(daoGenerator = @DodoDaoGenerator, srvGenerator = @DodoSrvGenerator, actGenerator = @DodoActionGenerator(actions = { DodoAction.ALL }))
public class VieweGroupDemo extends BaseEntity {

    private static final long serialVersionUID = -1353659153582841947L;

    @DodoViewGroup(groupSeq = 1, groupName = "第一组")
    @DodoField(sortSeq = 1, name = "字段1")
    private String            field1;

    @DodoViewGroup(groupSeq = 1, groupName = "第一组")
    @DodoField(sortSeq = 2, name = "字段2")
    private String            field2;

    @DodoViewGroup(groupSeq = 2, groupName = "第二组")
    @DodoField(sortSeq = 3, name = "字段3")
    private String            field3;

    @DodoViewGroup(groupSeq = 2, groupName = "第二组")
    @DodoField(sortSeq = 4, name = "字段4")
    private String            field4;

    @DodoViewGroup(groupSeq = 3, groupName = "第三组")
    @DodoField(sortSeq = 5, name = "字段5")
    private String            field5;

    @Column(length = 8)
    public String getField1() {
        return field1;
    }

    public void setField1(String field1) {
        this.field1 = field1;
    }

    @Column(length = 8)
    public String getField2() {
        return field2;
    }

    public void setField2(String field2) {
        this.field2 = field2;
    }

    @Column(length = 8)
    public String getField3() {
        return field3;
    }

    public void setField3(String field3) {
        this.field3 = field3;
    }

    @Column(length = 8)
    public String getField4() {
        return field4;
    }

    public void setField4(String field4) {
        this.field4 = field4;
    }

    @Column(length = 8)
    public String getField5() {
        return field5;
    }

    public void setField5(String field5) {
        this.field5 = field5;
    }
}
Copyright © Dodo Framework 2019 all right reservedModify At: 2019-12-23 14:56:53