VieweGroupDemo.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 = 12)
  9. )
  10. public class VieweGroupDemo extends BaseEntity {
  11. private static final long serialVersionUID = -1353659153582841947L;
  12. @DodoViewGroup(groupSeq = 1, groupName = "第一组")
  13. @DodoField(sortSeq = 1, name = "字段1")
  14. private String field1;
  15. @DodoViewGroup(groupSeq = 1, groupName = "第一组")
  16. @DodoField(sortSeq = 2, name = "字段2")
  17. private String field2;
  18. @DodoViewGroup(groupSeq = 2, groupName = "第二组")
  19. @DodoField(sortSeq = 3, name = "字段3")
  20. private String field3;
  21. @DodoViewGroup(groupSeq = 2, groupName = "第二组")
  22. @DodoField(sortSeq = 4, name = "字段4")
  23. private String field4;
  24. @DodoViewGroup(groupSeq = 3, groupName = "第三组")
  25. @DodoField(sortSeq = 5, name = "字段5")
  26. private String field5;
  27. @Column(length = 8)
  28. public String getField1() {
  29. return field1;
  30. }
  31. public void setField1(String field1) {
  32. this.field1 = field1;
  33. }
  34. @Column(length = 8)
  35. public String getField2() {
  36. return field2;
  37. }
  38. public void setField2(String field2) {
  39. this.field2 = field2;
  40. }
  41. @Column(length = 8)
  42. public String getField3() {
  43. return field3;
  44. }
  45. public void setField3(String field3) {
  46. this.field3 = field3;
  47. }
  48. @Column(length = 8)
  49. public String getField4() {
  50. return field4;
  51. }
  52. public void setField4(String field4) {
  53. this.field4 = field4;
  54. }
  55. @Column(length = 8)
  56. public String getField5() {
  57. return field5;
  58. }
  59. public void setField5(String field5) {
  60. this.field5 = field5;
  61. }
  62. }