TextbookQuestion.java 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  1. package com.qxgmat.data.dao.entity;
  2. import java.io.Serializable;
  3. import javax.persistence.*;
  4. @Table(name = "textbook_question")
  5. public class TextbookQuestion implements Serializable {
  6. @Id
  7. @Column(name = "`id`")
  8. @GeneratedValue(strategy = GenerationType.IDENTITY)
  9. private Integer id;
  10. /**
  11. * 题目编号:人工
  12. */
  13. @Column(name = "`title`")
  14. private String title;
  15. /**
  16. * 题目序号
  17. */
  18. @Column(name = "`no`")
  19. private Integer no;
  20. /**
  21. * 机经版本:关联换库表
  22. */
  23. @Column(name = "`library_id`")
  24. private Integer libraryId;
  25. /**
  26. * 题目id
  27. */
  28. @Column(name = "`question_id`")
  29. private Integer questionId;
  30. /**
  31. * 题目编号id
  32. */
  33. @Column(name = "`question_no_id`")
  34. private Integer questionNoId;
  35. /**
  36. * 总做题时间
  37. */
  38. @Column(name = "`total_time`")
  39. private Integer totalTime;
  40. /**
  41. * 总做题次数
  42. */
  43. @Column(name = "`total_number`")
  44. private Integer totalNumber;
  45. /**
  46. * 总正确次数
  47. */
  48. @Column(name = "`total_correct`")
  49. private Integer totalCorrect;
  50. /**
  51. * 所属年份
  52. */
  53. @Column(name = "`year`")
  54. private String year;
  55. @Column(name = "`collect_number`")
  56. private Integer collectNumber;
  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. * 获取题目编号:人工
  72. *
  73. * @return title - 题目编号:人工
  74. */
  75. public String getTitle() {
  76. return title;
  77. }
  78. /**
  79. * 设置题目编号:人工
  80. *
  81. * @param title 题目编号:人工
  82. */
  83. public void setTitle(String title) {
  84. this.title = title;
  85. }
  86. /**
  87. * 获取题目序号
  88. *
  89. * @return no - 题目序号
  90. */
  91. public Integer getNo() {
  92. return no;
  93. }
  94. /**
  95. * 设置题目序号
  96. *
  97. * @param no 题目序号
  98. */
  99. public void setNo(Integer no) {
  100. this.no = no;
  101. }
  102. /**
  103. * 获取机经版本:关联换库表
  104. *
  105. * @return library_id - 机经版本:关联换库表
  106. */
  107. public Integer getLibraryId() {
  108. return libraryId;
  109. }
  110. /**
  111. * 设置机经版本:关联换库表
  112. *
  113. * @param libraryId 机经版本:关联换库表
  114. */
  115. public void setLibraryId(Integer libraryId) {
  116. this.libraryId = libraryId;
  117. }
  118. /**
  119. * 获取题目id
  120. *
  121. * @return question_id - 题目id
  122. */
  123. public Integer getQuestionId() {
  124. return questionId;
  125. }
  126. /**
  127. * 设置题目id
  128. *
  129. * @param questionId 题目id
  130. */
  131. public void setQuestionId(Integer questionId) {
  132. this.questionId = questionId;
  133. }
  134. /**
  135. * 获取题目编号id
  136. *
  137. * @return question_no_id - 题目编号id
  138. */
  139. public Integer getQuestionNoId() {
  140. return questionNoId;
  141. }
  142. /**
  143. * 设置题目编号id
  144. *
  145. * @param questionNoId 题目编号id
  146. */
  147. public void setQuestionNoId(Integer questionNoId) {
  148. this.questionNoId = questionNoId;
  149. }
  150. /**
  151. * 获取总做题时间
  152. *
  153. * @return total_time - 总做题时间
  154. */
  155. public Integer getTotalTime() {
  156. return totalTime;
  157. }
  158. /**
  159. * 设置总做题时间
  160. *
  161. * @param totalTime 总做题时间
  162. */
  163. public void setTotalTime(Integer totalTime) {
  164. this.totalTime = totalTime;
  165. }
  166. /**
  167. * 获取总做题次数
  168. *
  169. * @return total_number - 总做题次数
  170. */
  171. public Integer getTotalNumber() {
  172. return totalNumber;
  173. }
  174. /**
  175. * 设置总做题次数
  176. *
  177. * @param totalNumber 总做题次数
  178. */
  179. public void setTotalNumber(Integer totalNumber) {
  180. this.totalNumber = totalNumber;
  181. }
  182. /**
  183. * 获取总正确次数
  184. *
  185. * @return total_correct - 总正确次数
  186. */
  187. public Integer getTotalCorrect() {
  188. return totalCorrect;
  189. }
  190. /**
  191. * 设置总正确次数
  192. *
  193. * @param totalCorrect 总正确次数
  194. */
  195. public void setTotalCorrect(Integer totalCorrect) {
  196. this.totalCorrect = totalCorrect;
  197. }
  198. /**
  199. * 获取所属年份
  200. *
  201. * @return year - 所属年份
  202. */
  203. public String getYear() {
  204. return year;
  205. }
  206. /**
  207. * 设置所属年份
  208. *
  209. * @param year 所属年份
  210. */
  211. public void setYear(String year) {
  212. this.year = year;
  213. }
  214. /**
  215. * @return collect_number
  216. */
  217. public Integer getCollectNumber() {
  218. return collectNumber;
  219. }
  220. /**
  221. * @param collectNumber
  222. */
  223. public void setCollectNumber(Integer collectNumber) {
  224. this.collectNumber = collectNumber;
  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(", title=").append(title);
  234. sb.append(", no=").append(no);
  235. sb.append(", libraryId=").append(libraryId);
  236. sb.append(", questionId=").append(questionId);
  237. sb.append(", questionNoId=").append(questionNoId);
  238. sb.append(", totalTime=").append(totalTime);
  239. sb.append(", totalNumber=").append(totalNumber);
  240. sb.append(", totalCorrect=").append(totalCorrect);
  241. sb.append(", year=").append(year);
  242. sb.append(", collectNumber=").append(collectNumber);
  243. sb.append("]");
  244. return sb.toString();
  245. }
  246. public static TextbookQuestion.Builder builder() {
  247. return new TextbookQuestion.Builder();
  248. }
  249. public static class Builder {
  250. private TextbookQuestion obj;
  251. public Builder() {
  252. this.obj = new TextbookQuestion();
  253. }
  254. /**
  255. * @param id
  256. */
  257. public Builder id(Integer id) {
  258. obj.setId(id);
  259. return this;
  260. }
  261. /**
  262. * 设置题目编号:人工
  263. *
  264. * @param title 题目编号:人工
  265. */
  266. public Builder title(String title) {
  267. obj.setTitle(title);
  268. return this;
  269. }
  270. /**
  271. * 设置题目序号
  272. *
  273. * @param no 题目序号
  274. */
  275. public Builder no(Integer no) {
  276. obj.setNo(no);
  277. return this;
  278. }
  279. /**
  280. * 设置机经版本:关联换库表
  281. *
  282. * @param libraryId 机经版本:关联换库表
  283. */
  284. public Builder libraryId(Integer libraryId) {
  285. obj.setLibraryId(libraryId);
  286. return this;
  287. }
  288. /**
  289. * 设置题目id
  290. *
  291. * @param questionId 题目id
  292. */
  293. public Builder questionId(Integer questionId) {
  294. obj.setQuestionId(questionId);
  295. return this;
  296. }
  297. /**
  298. * 设置题目编号id
  299. *
  300. * @param questionNoId 题目编号id
  301. */
  302. public Builder questionNoId(Integer questionNoId) {
  303. obj.setQuestionNoId(questionNoId);
  304. return this;
  305. }
  306. /**
  307. * 设置总做题时间
  308. *
  309. * @param totalTime 总做题时间
  310. */
  311. public Builder totalTime(Integer totalTime) {
  312. obj.setTotalTime(totalTime);
  313. return this;
  314. }
  315. /**
  316. * 设置总做题次数
  317. *
  318. * @param totalNumber 总做题次数
  319. */
  320. public Builder totalNumber(Integer totalNumber) {
  321. obj.setTotalNumber(totalNumber);
  322. return this;
  323. }
  324. /**
  325. * 设置总正确次数
  326. *
  327. * @param totalCorrect 总正确次数
  328. */
  329. public Builder totalCorrect(Integer totalCorrect) {
  330. obj.setTotalCorrect(totalCorrect);
  331. return this;
  332. }
  333. /**
  334. * 设置所属年份
  335. *
  336. * @param year 所属年份
  337. */
  338. public Builder year(String year) {
  339. obj.setYear(year);
  340. return this;
  341. }
  342. /**
  343. * @param collectNumber
  344. */
  345. public Builder collectNumber(Integer collectNumber) {
  346. obj.setCollectNumber(collectNumber);
  347. return this;
  348. }
  349. public TextbookQuestion build() {
  350. return this.obj;
  351. }
  352. }
  353. }