Exam.java 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. package edu.nju.entities;
  2. import lombok.AllArgsConstructor;
  3. import lombok.Data;
  4. import lombok.NoArgsConstructor;
  5. import org.springframework.data.annotation.Id;
  6. import org.springframework.data.annotation.PersistenceConstructor;
  7. import org.springframework.data.mongodb.core.mapping.Document;
  8. @Data
  9. @Document
  10. @NoArgsConstructor
  11. public class Exam implements java.io.Serializable {
  12. /**
  13. *
  14. */
  15. private static final long serialVersionUID = 7248743411159553345L;
  16. @Id
  17. private String id;
  18. private String json;
  19. private String app_name;
  20. private String paper_type;
  21. private String test_type;
  22. private String description;
  23. private String collaborative_type;
  24. // private String if_test_case;
  25. //
  26. // private String if_bug;
  27. @PersistenceConstructor
  28. public Exam(String id, String json, String app_name, String paper_type, String test_type, String description, String collaborative_type) {
  29. this.id = id;
  30. this.json = json;
  31. this.app_name = app_name;
  32. this.paper_type = paper_type;
  33. this.test_type = test_type;
  34. this.description = description;
  35. this.collaborative_type = collaborative_type;
  36. }
  37. @PersistenceConstructor
  38. public Exam(String id, String json, String app_name, String paper_type, String test_type, String description) {
  39. this.id = id;
  40. this.json = json;
  41. this.app_name = app_name;
  42. this.paper_type = paper_type;
  43. this.test_type = test_type;
  44. this.description = description;
  45. }
  46. // @PersistenceConstructor
  47. // public Exam(String id, String json, String app_name, String paper_type, String test_type, String description,
  48. // String if_test_case,String if_bug) {
  49. // this.id = id;
  50. // this.json = json;
  51. // this.app_name = app_name;
  52. // this.paper_type = paper_type;
  53. // this.test_type = test_type;
  54. // this.description = description;
  55. // this.if_test_case=if_test_case;
  56. // this.if_bug=if_bug;
  57. // }
  58. public String getId() {
  59. return id;
  60. }
  61. public void setId(String id) {
  62. this.id = id;
  63. }
  64. public String getJson() {
  65. return json;
  66. }
  67. public void setJson(String json) {
  68. this.json = json;
  69. }
  70. public String getName() {
  71. return app_name;
  72. }
  73. public void setName(String name) {
  74. this.app_name = app_name;
  75. }
  76. public String getPaper_type() {
  77. return paper_type;
  78. }
  79. public void setPaper_type(String paper_type) {
  80. this.paper_type = paper_type;
  81. }
  82. public String getTest_type() {
  83. return test_type;
  84. }
  85. public void setTest_type(String test_type) {
  86. this.test_type = test_type;
  87. }
  88. public String getDescription() {
  89. return description;
  90. }
  91. public void setDescription(String description) {
  92. this.description = description;
  93. }
  94. // public String getIf_test_case() {
  95. // return if_test_case;
  96. // }
  97. //
  98. // public void setIf_test_case(String if_test_case) {
  99. // this.if_test_case = if_test_case;
  100. // }
  101. //
  102. // public String getIf_bug() {
  103. // return if_bug;
  104. // }
  105. //
  106. // public void setIf_bug(String if_bug) {
  107. // this.if_bug = if_bug;
  108. // }
  109. }