ExaminationPaper.java 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588
  1. package com.qxgmat.data.dao.entity;
  2. import java.io.Serializable;
  3. import javax.persistence.*;
  4. @Table(name = "examination_paper")
  5. public class ExaminationPaper implements Serializable {
  6. @Id
  7. @Column(name = "`id`")
  8. @GeneratedValue(strategy = GenerationType.IDENTITY)
  9. private Integer id;
  10. /**
  11. * 试卷组
  12. */
  13. @Column(name = "`struct_two`")
  14. private Integer structTwo;
  15. /**
  16. * 考卷
  17. */
  18. @Column(name = "`struct_three`")
  19. private Integer structThree;
  20. /**
  21. * 是否适应难度: 0非适应性,1适应性,2千行
  22. */
  23. @Column(name = "`is_adapt`")
  24. private Integer isAdapt;
  25. /**
  26. * 标题
  27. */
  28. @Column(name = "`title`")
  29. private String title;
  30. /**
  31. * 开放状态:0关闭,1开启
  32. */
  33. @Column(name = "`status`")
  34. private Integer status;
  35. /**
  36. * 总分
  37. */
  38. @Column(name = "`total_score`")
  39. private Integer totalScore;
  40. /**
  41. * 总做卷次数
  42. */
  43. @Column(name = "`total_times`")
  44. private Integer totalTimes;
  45. /**
  46. * 总Q分
  47. */
  48. @Column(name = "`quant_score`")
  49. private Integer quantScore;
  50. /**
  51. * 总V分
  52. */
  53. @Column(name = "`verbal_score`")
  54. private Integer verbalScore;
  55. /**
  56. * 总ir分
  57. */
  58. @Column(name = "`ir_score`")
  59. private Integer irScore;
  60. /**
  61. * 第二次总分
  62. */
  63. @Column(name = "`second_total_score`")
  64. private Integer secondTotalScore;
  65. /**
  66. * 第二次总做卷次数
  67. */
  68. @Column(name = "`second_total_times`")
  69. private Integer secondTotalTimes;
  70. /**
  71. * 第二次总Q分
  72. */
  73. @Column(name = "`second_quant_score`")
  74. private Integer secondQuantScore;
  75. /**
  76. * 第二次总V分
  77. */
  78. @Column(name = "`second_verbal_score`")
  79. private Integer secondVerbalScore;
  80. /**
  81. * 第二次总ir分
  82. */
  83. @Column(name = "`second_ir_score`")
  84. private Integer secondIrScore;
  85. private static final long serialVersionUID = 1L;
  86. /**
  87. * @return id
  88. */
  89. public Integer getId() {
  90. return id;
  91. }
  92. /**
  93. * @param id
  94. */
  95. public void setId(Integer id) {
  96. this.id = id;
  97. }
  98. /**
  99. * 获取试卷组
  100. *
  101. * @return struct_two - 试卷组
  102. */
  103. public Integer getStructTwo() {
  104. return structTwo;
  105. }
  106. /**
  107. * 设置试卷组
  108. *
  109. * @param structTwo 试卷组
  110. */
  111. public void setStructTwo(Integer structTwo) {
  112. this.structTwo = structTwo;
  113. }
  114. /**
  115. * 获取考卷
  116. *
  117. * @return struct_three - 考卷
  118. */
  119. public Integer getStructThree() {
  120. return structThree;
  121. }
  122. /**
  123. * 设置考卷
  124. *
  125. * @param structThree 考卷
  126. */
  127. public void setStructThree(Integer structThree) {
  128. this.structThree = structThree;
  129. }
  130. /**
  131. * 获取是否适应难度: 0非适应性,1适应性,2千行
  132. *
  133. * @return is_adapt - 是否适应难度: 0非适应性,1适应性,2千行
  134. */
  135. public Integer getIsAdapt() {
  136. return isAdapt;
  137. }
  138. /**
  139. * 设置是否适应难度: 0非适应性,1适应性,2千行
  140. *
  141. * @param isAdapt 是否适应难度: 0非适应性,1适应性,2千行
  142. */
  143. public void setIsAdapt(Integer isAdapt) {
  144. this.isAdapt = isAdapt;
  145. }
  146. /**
  147. * 获取标题
  148. *
  149. * @return title - 标题
  150. */
  151. public String getTitle() {
  152. return title;
  153. }
  154. /**
  155. * 设置标题
  156. *
  157. * @param title 标题
  158. */
  159. public void setTitle(String title) {
  160. this.title = title;
  161. }
  162. /**
  163. * 获取开放状态:0关闭,1开启
  164. *
  165. * @return status - 开放状态:0关闭,1开启
  166. */
  167. public Integer getStatus() {
  168. return status;
  169. }
  170. /**
  171. * 设置开放状态:0关闭,1开启
  172. *
  173. * @param status 开放状态:0关闭,1开启
  174. */
  175. public void setStatus(Integer status) {
  176. this.status = status;
  177. }
  178. /**
  179. * 获取总分
  180. *
  181. * @return total_score - 总分
  182. */
  183. public Integer getTotalScore() {
  184. return totalScore;
  185. }
  186. /**
  187. * 设置总分
  188. *
  189. * @param totalScore 总分
  190. */
  191. public void setTotalScore(Integer totalScore) {
  192. this.totalScore = totalScore;
  193. }
  194. /**
  195. * 获取总做卷次数
  196. *
  197. * @return total_times - 总做卷次数
  198. */
  199. public Integer getTotalTimes() {
  200. return totalTimes;
  201. }
  202. /**
  203. * 设置总做卷次数
  204. *
  205. * @param totalTimes 总做卷次数
  206. */
  207. public void setTotalTimes(Integer totalTimes) {
  208. this.totalTimes = totalTimes;
  209. }
  210. /**
  211. * 获取总Q分
  212. *
  213. * @return quant_score - 总Q分
  214. */
  215. public Integer getQuantScore() {
  216. return quantScore;
  217. }
  218. /**
  219. * 设置总Q分
  220. *
  221. * @param quantScore 总Q分
  222. */
  223. public void setQuantScore(Integer quantScore) {
  224. this.quantScore = quantScore;
  225. }
  226. /**
  227. * 获取总V分
  228. *
  229. * @return verbal_score - 总V分
  230. */
  231. public Integer getVerbalScore() {
  232. return verbalScore;
  233. }
  234. /**
  235. * 设置总V分
  236. *
  237. * @param verbalScore 总V分
  238. */
  239. public void setVerbalScore(Integer verbalScore) {
  240. this.verbalScore = verbalScore;
  241. }
  242. /**
  243. * 获取总ir分
  244. *
  245. * @return ir_score - 总ir分
  246. */
  247. public Integer getIrScore() {
  248. return irScore;
  249. }
  250. /**
  251. * 设置总ir分
  252. *
  253. * @param irScore 总ir分
  254. */
  255. public void setIrScore(Integer irScore) {
  256. this.irScore = irScore;
  257. }
  258. /**
  259. * 获取第二次总分
  260. *
  261. * @return second_total_score - 第二次总分
  262. */
  263. public Integer getSecondTotalScore() {
  264. return secondTotalScore;
  265. }
  266. /**
  267. * 设置第二次总分
  268. *
  269. * @param secondTotalScore 第二次总分
  270. */
  271. public void setSecondTotalScore(Integer secondTotalScore) {
  272. this.secondTotalScore = secondTotalScore;
  273. }
  274. /**
  275. * 获取第二次总做卷次数
  276. *
  277. * @return second_total_times - 第二次总做卷次数
  278. */
  279. public Integer getSecondTotalTimes() {
  280. return secondTotalTimes;
  281. }
  282. /**
  283. * 设置第二次总做卷次数
  284. *
  285. * @param secondTotalTimes 第二次总做卷次数
  286. */
  287. public void setSecondTotalTimes(Integer secondTotalTimes) {
  288. this.secondTotalTimes = secondTotalTimes;
  289. }
  290. /**
  291. * 获取第二次总Q分
  292. *
  293. * @return second_quant_score - 第二次总Q分
  294. */
  295. public Integer getSecondQuantScore() {
  296. return secondQuantScore;
  297. }
  298. /**
  299. * 设置第二次总Q分
  300. *
  301. * @param secondQuantScore 第二次总Q分
  302. */
  303. public void setSecondQuantScore(Integer secondQuantScore) {
  304. this.secondQuantScore = secondQuantScore;
  305. }
  306. /**
  307. * 获取第二次总V分
  308. *
  309. * @return second_verbal_score - 第二次总V分
  310. */
  311. public Integer getSecondVerbalScore() {
  312. return secondVerbalScore;
  313. }
  314. /**
  315. * 设置第二次总V分
  316. *
  317. * @param secondVerbalScore 第二次总V分
  318. */
  319. public void setSecondVerbalScore(Integer secondVerbalScore) {
  320. this.secondVerbalScore = secondVerbalScore;
  321. }
  322. /**
  323. * 获取第二次总ir分
  324. *
  325. * @return second_ir_score - 第二次总ir分
  326. */
  327. public Integer getSecondIrScore() {
  328. return secondIrScore;
  329. }
  330. /**
  331. * 设置第二次总ir分
  332. *
  333. * @param secondIrScore 第二次总ir分
  334. */
  335. public void setSecondIrScore(Integer secondIrScore) {
  336. this.secondIrScore = secondIrScore;
  337. }
  338. @Override
  339. public String toString() {
  340. StringBuilder sb = new StringBuilder();
  341. sb.append(getClass().getSimpleName());
  342. sb.append(" [");
  343. sb.append("Hash = ").append(hashCode());
  344. sb.append(", id=").append(id);
  345. sb.append(", structTwo=").append(structTwo);
  346. sb.append(", structThree=").append(structThree);
  347. sb.append(", isAdapt=").append(isAdapt);
  348. sb.append(", title=").append(title);
  349. sb.append(", status=").append(status);
  350. sb.append(", totalScore=").append(totalScore);
  351. sb.append(", totalTimes=").append(totalTimes);
  352. sb.append(", quantScore=").append(quantScore);
  353. sb.append(", verbalScore=").append(verbalScore);
  354. sb.append(", irScore=").append(irScore);
  355. sb.append(", secondTotalScore=").append(secondTotalScore);
  356. sb.append(", secondTotalTimes=").append(secondTotalTimes);
  357. sb.append(", secondQuantScore=").append(secondQuantScore);
  358. sb.append(", secondVerbalScore=").append(secondVerbalScore);
  359. sb.append(", secondIrScore=").append(secondIrScore);
  360. sb.append("]");
  361. return sb.toString();
  362. }
  363. public static ExaminationPaper.Builder builder() {
  364. return new ExaminationPaper.Builder();
  365. }
  366. public static class Builder {
  367. private ExaminationPaper obj;
  368. public Builder() {
  369. this.obj = new ExaminationPaper();
  370. }
  371. /**
  372. * @param id
  373. */
  374. public Builder id(Integer id) {
  375. obj.setId(id);
  376. return this;
  377. }
  378. /**
  379. * 设置试卷组
  380. *
  381. * @param structTwo 试卷组
  382. */
  383. public Builder structTwo(Integer structTwo) {
  384. obj.setStructTwo(structTwo);
  385. return this;
  386. }
  387. /**
  388. * 设置考卷
  389. *
  390. * @param structThree 考卷
  391. */
  392. public Builder structThree(Integer structThree) {
  393. obj.setStructThree(structThree);
  394. return this;
  395. }
  396. /**
  397. * 设置是否适应难度: 0非适应性,1适应性,2千行
  398. *
  399. * @param isAdapt 是否适应难度: 0非适应性,1适应性,2千行
  400. */
  401. public Builder isAdapt(Integer isAdapt) {
  402. obj.setIsAdapt(isAdapt);
  403. return this;
  404. }
  405. /**
  406. * 设置标题
  407. *
  408. * @param title 标题
  409. */
  410. public Builder title(String title) {
  411. obj.setTitle(title);
  412. return this;
  413. }
  414. /**
  415. * 设置开放状态:0关闭,1开启
  416. *
  417. * @param status 开放状态:0关闭,1开启
  418. */
  419. public Builder status(Integer status) {
  420. obj.setStatus(status);
  421. return this;
  422. }
  423. /**
  424. * 设置总分
  425. *
  426. * @param totalScore 总分
  427. */
  428. public Builder totalScore(Integer totalScore) {
  429. obj.setTotalScore(totalScore);
  430. return this;
  431. }
  432. /**
  433. * 设置总做卷次数
  434. *
  435. * @param totalTimes 总做卷次数
  436. */
  437. public Builder totalTimes(Integer totalTimes) {
  438. obj.setTotalTimes(totalTimes);
  439. return this;
  440. }
  441. /**
  442. * 设置总Q分
  443. *
  444. * @param quantScore 总Q分
  445. */
  446. public Builder quantScore(Integer quantScore) {
  447. obj.setQuantScore(quantScore);
  448. return this;
  449. }
  450. /**
  451. * 设置总V分
  452. *
  453. * @param verbalScore 总V分
  454. */
  455. public Builder verbalScore(Integer verbalScore) {
  456. obj.setVerbalScore(verbalScore);
  457. return this;
  458. }
  459. /**
  460. * 设置总ir分
  461. *
  462. * @param irScore 总ir分
  463. */
  464. public Builder irScore(Integer irScore) {
  465. obj.setIrScore(irScore);
  466. return this;
  467. }
  468. /**
  469. * 设置第二次总分
  470. *
  471. * @param secondTotalScore 第二次总分
  472. */
  473. public Builder secondTotalScore(Integer secondTotalScore) {
  474. obj.setSecondTotalScore(secondTotalScore);
  475. return this;
  476. }
  477. /**
  478. * 设置第二次总做卷次数
  479. *
  480. * @param secondTotalTimes 第二次总做卷次数
  481. */
  482. public Builder secondTotalTimes(Integer secondTotalTimes) {
  483. obj.setSecondTotalTimes(secondTotalTimes);
  484. return this;
  485. }
  486. /**
  487. * 设置第二次总Q分
  488. *
  489. * @param secondQuantScore 第二次总Q分
  490. */
  491. public Builder secondQuantScore(Integer secondQuantScore) {
  492. obj.setSecondQuantScore(secondQuantScore);
  493. return this;
  494. }
  495. /**
  496. * 设置第二次总V分
  497. *
  498. * @param secondVerbalScore 第二次总V分
  499. */
  500. public Builder secondVerbalScore(Integer secondVerbalScore) {
  501. obj.setSecondVerbalScore(secondVerbalScore);
  502. return this;
  503. }
  504. /**
  505. * 设置第二次总ir分
  506. *
  507. * @param secondIrScore 第二次总ir分
  508. */
  509. public Builder secondIrScore(Integer secondIrScore) {
  510. obj.setSecondIrScore(secondIrScore);
  511. return this;
  512. }
  513. public ExaminationPaper build() {
  514. return this.obj;
  515. }
  516. }
  517. }