ExercisePaper.java 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  1. package com.qxgmat.data.dao.entity;
  2. import java.io.Serializable;
  3. import javax.persistence.*;
  4. @Table(name = "exercise_paper")
  5. public class ExercisePaper implements Serializable {
  6. @Id
  7. @Column(name = "`id`")
  8. @GeneratedValue(strategy = GenerationType.IDENTITY)
  9. private Integer id;
  10. /**
  11. * 题型:从struct上获取extend
  12. */
  13. @Column(name = "`question_type`")
  14. private String questionType;
  15. @Column(name = "`title`")
  16. private String title;
  17. /**
  18. * 组卷序号
  19. */
  20. @Column(name = "`no`")
  21. private Integer no;
  22. /**
  23. * 组卷逻辑:order ,place,difficult,error
  24. */
  25. @Column(name = "`logic`")
  26. private String logic;
  27. /**
  28. * 逻辑
  29. */
  30. @Column(name = "`logic_extend`")
  31. private String logicExtend;
  32. /**
  33. * 教材
  34. */
  35. @Column(name = "`struct_three`")
  36. private Integer structThree;
  37. /**
  38. * 分册
  39. */
  40. @Column(name = "`struct_four`")
  41. private Integer structFour;
  42. /**
  43. * 题目数量
  44. */
  45. @Column(name = "`question_number`")
  46. private Integer questionNumber;
  47. /**
  48. * 题目编号ids:json
  49. */
  50. @Column(name = "`question_no_ids`")
  51. private Integer[] questionNoIds;
  52. /**
  53. * 开放状态:0关闭,1开启
  54. */
  55. @Column(name = "`status`")
  56. private Integer status;
  57. private static final long serialVersionUID = 1L;
  58. /**
  59. * @return id
  60. */
  61. public Integer getId() {
  62. return id;
  63. }
  64. /**
  65. * @param id
  66. */
  67. public void setId(Integer id) {
  68. this.id = id;
  69. }
  70. /**
  71. * 获取题型:从struct上获取extend
  72. *
  73. * @return question_type - 题型:从struct上获取extend
  74. */
  75. public String getQuestionType() {
  76. return questionType;
  77. }
  78. /**
  79. * 设置题型:从struct上获取extend
  80. *
  81. * @param questionType 题型:从struct上获取extend
  82. */
  83. public void setQuestionType(String questionType) {
  84. this.questionType = questionType;
  85. }
  86. /**
  87. * @return title
  88. */
  89. public String getTitle() {
  90. return title;
  91. }
  92. /**
  93. * @param title
  94. */
  95. public void setTitle(String title) {
  96. this.title = title;
  97. }
  98. /**
  99. * 获取组卷序号
  100. *
  101. * @return no - 组卷序号
  102. */
  103. public Integer getNo() {
  104. return no;
  105. }
  106. /**
  107. * 设置组卷序号
  108. *
  109. * @param no 组卷序号
  110. */
  111. public void setNo(Integer no) {
  112. this.no = no;
  113. }
  114. /**
  115. * 获取组卷逻辑:order ,place,difficult,error
  116. *
  117. * @return logic - 组卷逻辑:order ,place,difficult,error
  118. */
  119. public String getLogic() {
  120. return logic;
  121. }
  122. /**
  123. * 设置组卷逻辑:order ,place,difficult,error
  124. *
  125. * @param logic 组卷逻辑:order ,place,difficult,error
  126. */
  127. public void setLogic(String logic) {
  128. this.logic = logic;
  129. }
  130. /**
  131. * 获取逻辑
  132. *
  133. * @return logic_extend - 逻辑
  134. */
  135. public String getLogicExtend() {
  136. return logicExtend;
  137. }
  138. /**
  139. * 设置逻辑
  140. *
  141. * @param logicExtend 逻辑
  142. */
  143. public void setLogicExtend(String logicExtend) {
  144. this.logicExtend = logicExtend;
  145. }
  146. /**
  147. * 获取教材
  148. *
  149. * @return struct_three - 教材
  150. */
  151. public Integer getStructThree() {
  152. return structThree;
  153. }
  154. /**
  155. * 设置教材
  156. *
  157. * @param structThree 教材
  158. */
  159. public void setStructThree(Integer structThree) {
  160. this.structThree = structThree;
  161. }
  162. /**
  163. * 获取分册
  164. *
  165. * @return struct_four - 分册
  166. */
  167. public Integer getStructFour() {
  168. return structFour;
  169. }
  170. /**
  171. * 设置分册
  172. *
  173. * @param structFour 分册
  174. */
  175. public void setStructFour(Integer structFour) {
  176. this.structFour = structFour;
  177. }
  178. /**
  179. * 获取题目数量
  180. *
  181. * @return question_number - 题目数量
  182. */
  183. public Integer getQuestionNumber() {
  184. return questionNumber;
  185. }
  186. /**
  187. * 设置题目数量
  188. *
  189. * @param questionNumber 题目数量
  190. */
  191. public void setQuestionNumber(Integer questionNumber) {
  192. this.questionNumber = questionNumber;
  193. }
  194. /**
  195. * 获取题目编号ids:json
  196. *
  197. * @return question_no_ids - 题目编号ids:json
  198. */
  199. public Integer[] getQuestionNoIds() {
  200. return questionNoIds;
  201. }
  202. /**
  203. * 设置题目编号ids:json
  204. *
  205. * @param questionNoIds 题目编号ids:json
  206. */
  207. public void setQuestionNoIds(Integer[] questionNoIds) {
  208. this.questionNoIds = questionNoIds;
  209. }
  210. /**
  211. * 获取开放状态:0关闭,1开启
  212. *
  213. * @return status - 开放状态:0关闭,1开启
  214. */
  215. public Integer getStatus() {
  216. return status;
  217. }
  218. /**
  219. * 设置开放状态:0关闭,1开启
  220. *
  221. * @param status 开放状态:0关闭,1开启
  222. */
  223. public void setStatus(Integer status) {
  224. this.status = status;
  225. }
  226. @Override
  227. public String toString() {
  228. StringBuilder sb = new StringBuilder();
  229. sb.append(getClass().getSimpleName());
  230. sb.append(" [");
  231. sb.append("Hash = ").append(hashCode());
  232. sb.append(", id=").append(id);
  233. sb.append(", questionType=").append(questionType);
  234. sb.append(", title=").append(title);
  235. sb.append(", no=").append(no);
  236. sb.append(", logic=").append(logic);
  237. sb.append(", logicExtend=").append(logicExtend);
  238. sb.append(", structThree=").append(structThree);
  239. sb.append(", structFour=").append(structFour);
  240. sb.append(", questionNumber=").append(questionNumber);
  241. sb.append(", questionNoIds=").append(questionNoIds);
  242. sb.append(", status=").append(status);
  243. sb.append("]");
  244. return sb.toString();
  245. }
  246. public static ExercisePaper.Builder builder() {
  247. return new ExercisePaper.Builder();
  248. }
  249. public static class Builder {
  250. private ExercisePaper obj;
  251. public Builder() {
  252. this.obj = new ExercisePaper();
  253. }
  254. /**
  255. * @param id
  256. */
  257. public Builder id(Integer id) {
  258. obj.setId(id);
  259. return this;
  260. }
  261. /**
  262. * 设置题型:从struct上获取extend
  263. *
  264. * @param questionType 题型:从struct上获取extend
  265. */
  266. public Builder questionType(String questionType) {
  267. obj.setQuestionType(questionType);
  268. return this;
  269. }
  270. /**
  271. * @param title
  272. */
  273. public Builder title(String title) {
  274. obj.setTitle(title);
  275. return this;
  276. }
  277. /**
  278. * 设置组卷序号
  279. *
  280. * @param no 组卷序号
  281. */
  282. public Builder no(Integer no) {
  283. obj.setNo(no);
  284. return this;
  285. }
  286. /**
  287. * 设置组卷逻辑:order ,place,difficult,error
  288. *
  289. * @param logic 组卷逻辑:order ,place,difficult,error
  290. */
  291. public Builder logic(String logic) {
  292. obj.setLogic(logic);
  293. return this;
  294. }
  295. /**
  296. * 设置逻辑
  297. *
  298. * @param logicExtend 逻辑
  299. */
  300. public Builder logicExtend(String logicExtend) {
  301. obj.setLogicExtend(logicExtend);
  302. return this;
  303. }
  304. /**
  305. * 设置教材
  306. *
  307. * @param structThree 教材
  308. */
  309. public Builder structThree(Integer structThree) {
  310. obj.setStructThree(structThree);
  311. return this;
  312. }
  313. /**
  314. * 设置分册
  315. *
  316. * @param structFour 分册
  317. */
  318. public Builder structFour(Integer structFour) {
  319. obj.setStructFour(structFour);
  320. return this;
  321. }
  322. /**
  323. * 设置题目数量
  324. *
  325. * @param questionNumber 题目数量
  326. */
  327. public Builder questionNumber(Integer questionNumber) {
  328. obj.setQuestionNumber(questionNumber);
  329. return this;
  330. }
  331. /**
  332. * 设置题目编号ids:json
  333. *
  334. * @param questionNoIds 题目编号ids:json
  335. */
  336. public Builder questionNoIds(Integer[] questionNoIds) {
  337. obj.setQuestionNoIds(questionNoIds);
  338. return this;
  339. }
  340. /**
  341. * 设置开放状态:0关闭,1开启
  342. *
  343. * @param status 开放状态:0关闭,1开启
  344. */
  345. public Builder status(Integer status) {
  346. obj.setStatus(status);
  347. return this;
  348. }
  349. public ExercisePaper build() {
  350. return this.obj;
  351. }
  352. }
  353. }