RowRightDemo1.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 = "行级权限演示(1)", level = DodoMenuLevel.LEVEL3, sortSeq = 9)
@DodoRight(name = "行级权限(只能操作自己添加的数据)")
@DodoCodeGenerator(daoGenerator = @DodoDaoGenerator, srvGenerator = @DodoSrvGenerator, actGenerator = @DodoActionGenerator(actions = { DodoAction.ALL }))
@DodoRowRight(entityProperty = "addBy")
public class RowRightDemo1 extends BaseEntity {

    private static final long serialVersionUID = 2340857123849986982L;

    @DodoField(sortSeq = 1, name = "管理员", isAdmin = true)
    private Admin             addBy;

    @DodoField(sortSeq = 2, name = "其他信息", isnullable = false)
    private String            field1;

    @OneToOne
    public Admin getAddBy() {
        return addBy;
    }

    public void setAddBy(Admin addBy) {
        this.addBy = addBy;
    }

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

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