ExercisePaperQuestion.java 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. package com.qxgmat.data.dao.entity;
  2. import java.io.Serializable;
  3. import javax.persistence.*;
  4. @Table(name = "exercise_paper_question")
  5. public class ExercisePaperQuestion implements Serializable {
  6. @Id
  7. @Column(name = "`id`")
  8. @GeneratedValue(strategy = GenerationType.IDENTITY)
  9. private Integer id;
  10. /**
  11. * 练习册:组卷id
  12. */
  13. @Column(name = "`paper_id`")
  14. private Integer paperId;
  15. /**
  16. * 题目id
  17. */
  18. @Column(name = "`question_id`")
  19. private Integer questionId;
  20. /**
  21. * 题目编号id
  22. */
  23. @Column(name = "`question_no_id`")
  24. private Integer questionNoId;
  25. /**
  26. * 序号
  27. */
  28. @Column(name = "`no`")
  29. private Integer no;
  30. @Column(name = "`status`")
  31. private Integer status;
  32. private static final long serialVersionUID = 1L;
  33. /**
  34. * @return id
  35. */
  36. public Integer getId() {
  37. return id;
  38. }
  39. /**
  40. * @param id
  41. */
  42. public void setId(Integer id) {
  43. this.id = id;
  44. }
  45. /**
  46. * 获取练习册:组卷id
  47. *
  48. * @return paper_id - 练习册:组卷id
  49. */
  50. public Integer getPaperId() {
  51. return paperId;
  52. }
  53. /**
  54. * 设置练习册:组卷id
  55. *
  56. * @param paperId 练习册:组卷id
  57. */
  58. public void setPaperId(Integer paperId) {
  59. this.paperId = paperId;
  60. }
  61. /**
  62. * 获取题目id
  63. *
  64. * @return question_id - 题目id
  65. */
  66. public Integer getQuestionId() {
  67. return questionId;
  68. }
  69. /**
  70. * 设置题目id
  71. *
  72. * @param questionId 题目id
  73. */
  74. public void setQuestionId(Integer questionId) {
  75. this.questionId = questionId;
  76. }
  77. /**
  78. * 获取题目编号id
  79. *
  80. * @return question_no_id - 题目编号id
  81. */
  82. public Integer getQuestionNoId() {
  83. return questionNoId;
  84. }
  85. /**
  86. * 设置题目编号id
  87. *
  88. * @param questionNoId 题目编号id
  89. */
  90. public void setQuestionNoId(Integer questionNoId) {
  91. this.questionNoId = questionNoId;
  92. }
  93. /**
  94. * 获取序号
  95. *
  96. * @return no - 序号
  97. */
  98. public Integer getNo() {
  99. return no;
  100. }
  101. /**
  102. * 设置序号
  103. *
  104. * @param no 序号
  105. */
  106. public void setNo(Integer no) {
  107. this.no = no;
  108. }
  109. /**
  110. * @return status
  111. */
  112. public Integer getStatus() {
  113. return status;
  114. }
  115. /**
  116. * @param status
  117. */
  118. public void setStatus(Integer status) {
  119. this.status = status;
  120. }
  121. @Override
  122. public String toString() {
  123. StringBuilder sb = new StringBuilder();
  124. sb.append(getClass().getSimpleName());
  125. sb.append(" [");
  126. sb.append("Hash = ").append(hashCode());
  127. sb.append(", id=").append(id);
  128. sb.append(", paperId=").append(paperId);
  129. sb.append(", questionId=").append(questionId);
  130. sb.append(", questionNoId=").append(questionNoId);
  131. sb.append(", no=").append(no);
  132. sb.append(", status=").append(status);
  133. sb.append("]");
  134. return sb.toString();
  135. }
  136. public static ExercisePaperQuestion.Builder builder() {
  137. return new ExercisePaperQuestion.Builder();
  138. }
  139. public static class Builder {
  140. private ExercisePaperQuestion obj;
  141. public Builder() {
  142. this.obj = new ExercisePaperQuestion();
  143. }
  144. /**
  145. * @param id
  146. */
  147. public Builder id(Integer id) {
  148. obj.setId(id);
  149. return this;
  150. }
  151. /**
  152. * 设置练习册:组卷id
  153. *
  154. * @param paperId 练习册:组卷id
  155. */
  156. public Builder paperId(Integer paperId) {
  157. obj.setPaperId(paperId);
  158. return this;
  159. }
  160. /**
  161. * 设置题目id
  162. *
  163. * @param questionId 题目id
  164. */
  165. public Builder questionId(Integer questionId) {
  166. obj.setQuestionId(questionId);
  167. return this;
  168. }
  169. /**
  170. * 设置题目编号id
  171. *
  172. * @param questionNoId 题目编号id
  173. */
  174. public Builder questionNoId(Integer questionNoId) {
  175. obj.setQuestionNoId(questionNoId);
  176. return this;
  177. }
  178. /**
  179. * 设置序号
  180. *
  181. * @param no 序号
  182. */
  183. public Builder no(Integer no) {
  184. obj.setNo(no);
  185. return this;
  186. }
  187. /**
  188. * @param status
  189. */
  190. public Builder status(Integer status) {
  191. obj.setStatus(status);
  192. return this;
  193. }
  194. public ExercisePaperQuestion build() {
  195. return this.obj;
  196. }
  197. }
  198. }