ActionDemoViewAdd.java

  1. package com.example.entity.demo_4.base_1;
  2. @Entity
  3. @DynamicInsert
  4. // actions = {DodoAction.ADD, DodoAction.VIEW } = 生成查看、添加功能
  5. @DodoEntity(name = "部分Action(查看和添加)", actions = { DodoAction.ADD, DodoAction.VIEW })
  6. @DodoMenus(
  7. levelOne = @DodoMenu(name = "Demo系统", sortSeq = 7),
  8. levelTwo = @DodoMenu(name = "基础演示", sortSeq = 1),
  9. levelThree = @DodoMenu(name = "部分Action(查看和添加)演示", sortSeq = 2)
  10. )
  11. public class ActionDemoViewAdd extends BaseEntity {
  12. private static final long serialVersionUID = 7953109081252074508L;
  13. @DodoField(sortSeq = 5, name = "字段5")
  14. private String field5;
  15. @Column(length = 8)
  16. public String getField5() {
  17. return field5;
  18. }
  19. public void setField5(String field5) {
  20. this.field5 = field5;
  21. }
  22. }