RowRightDemo1.java

  1. package com.example.entity.demo_4.base_1;
  2. @Entity
  3. @DynamicInsert
  4. @DodoEntity(name = "行级权限(只能操作自己添加的数据)", actions = { DodoAction.ALL })
  5. @DodoMenus(
  6. levelOne = @DodoMenu(name = "Demo系统", sortSeq = 7),
  7. levelTwo = @DodoMenu(name = "基础演示", sortSeq = 1),
  8. levelThree = @DodoMenu(name = "行级权限演示(1)", sortSeq = 9)
  9. )
  10. @DodoRowRight(entityProperty = "addBy")
  11. public class RowRightDemo1 extends BaseEntity {
  12. private static final long serialVersionUID = 2340857123849986982L;
  13. @DodoField(sortSeq = 1, name = "管理员", isAdmin = true)
  14. private Admin addBy;
  15. @DodoField(sortSeq = 2, name = "其他信息", isnullable = false)
  16. private String field1;
  17. @OneToOne
  18. public Admin getAddBy() {
  19. return addBy;
  20. }
  21. public void setAddBy(Admin addBy) {
  22. this.addBy = addBy;
  23. }
  24. @Column(length = 8)
  25. public String getField1() {
  26. return field1;
  27. }
  28. public void setField1(String field1) {
  29. this.field1 = field1;
  30. }
  31. }