AddDemo.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 = "添加和修改演示", sortSeq = 4)
  9. )
  10. public class AddDemo extends BaseEntity {
  11. private static final long serialVersionUID = 5173398927310922869L;
  12. // 该字段只可编辑,不能添加
  13. @DodoField(sortSeq = 1, name = "字段1(不可添加)", addable = false)
  14. private String field1;
  15. // 该字段只可添加,不能编辑
  16. @DodoField(sortSeq = 2, name = "字段2(不可编辑)", editable = false)
  17. private String field2;
  18. // 以下字段即可以修改、也可以添加
  19. @DodoField(sortSeq = 3, name = "字段3")
  20. private String field3;
  21. @DodoField(sortSeq = 4, name = "字段4")
  22. private String field4;
  23. @DodoField(sortSeq = 5, name = "字段5")
  24. private String field5;
  25. @Column(length = 8)
  26. public String getField1() {
  27. return field1;
  28. }
  29. public void setField1(String field1) {
  30. this.field1 = field1;
  31. }
  32. @Column(length = 8)
  33. public String getField2() {
  34. return field2;
  35. }
  36. public void setField2(String field2) {
  37. this.field2 = field2;
  38. }
  39. @Column(length = 8)
  40. public String getField3() {
  41. return field3;
  42. }
  43. public void setField3(String field3) {
  44. this.field3 = field3;
  45. }
  46. @Column(length = 8)
  47. public String getField4() {
  48. return field4;
  49. }
  50. public void setField4(String field4) {
  51. this.field4 = field4;
  52. }
  53. @Column(length = 8)
  54. public String getField5() {
  55. return field5;
  56. }
  57. public void setField5(String field5) {
  58. this.field5 = field5;
  59. }
  60. }