1
0

UserNoteQuestion.java 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551
  1. package com.qxgmat.data.dao.entity;
  2. import java.io.Serializable;
  3. import java.util.Date;
  4. import javax.persistence.*;
  5. @Table(name = "user_note_question")
  6. public class UserNoteQuestion implements Serializable {
  7. @Id
  8. @Column(name = "`id`")
  9. @GeneratedValue(strategy = GenerationType.IDENTITY)
  10. private Integer id;
  11. /**
  12. * 用户id
  13. */
  14. @Column(name = "`user_id`")
  15. private Integer userId;
  16. /**
  17. * 模块:exercise, exaination, sentence, textbook
  18. */
  19. @Column(name = "`question_module`")
  20. private String questionModule;
  21. /**
  22. * 题目id
  23. */
  24. @Column(name = "`question_id`")
  25. private Integer questionId;
  26. /**
  27. * 题目编号id
  28. */
  29. @Column(name = "`question_no_id`")
  30. private Integer questionNoId;
  31. @Column(name = "`question_time`")
  32. private Date questionTime;
  33. @Column(name = "`create_time`")
  34. private Date createTime;
  35. @Column(name = "`update_time`")
  36. private Date updateTime;
  37. @Column(name = "`official_time`")
  38. private Date officialTime;
  39. @Column(name = "`qx_time`")
  40. private Date qxTime;
  41. @Column(name = "`association_time`")
  42. private Date associationTime;
  43. @Column(name = "`qa_time`")
  44. private Date qaTime;
  45. @Column(name = "`question_content`")
  46. private String questionContent;
  47. /**
  48. * 笔记内容
  49. */
  50. @Column(name = "`content`")
  51. private String content;
  52. @Column(name = "`official_content`")
  53. private String officialContent;
  54. @Column(name = "`qx_content`")
  55. private String qxContent;
  56. @Column(name = "`association_content`")
  57. private String associationContent;
  58. @Column(name = "`qa_content`")
  59. private String qaContent;
  60. private static final long serialVersionUID = 1L;
  61. /**
  62. * @return id
  63. */
  64. public Integer getId() {
  65. return id;
  66. }
  67. /**
  68. * @param id
  69. */
  70. public void setId(Integer id) {
  71. this.id = id;
  72. }
  73. /**
  74. * 获取用户id
  75. *
  76. * @return user_id - 用户id
  77. */
  78. public Integer getUserId() {
  79. return userId;
  80. }
  81. /**
  82. * 设置用户id
  83. *
  84. * @param userId 用户id
  85. */
  86. public void setUserId(Integer userId) {
  87. this.userId = userId;
  88. }
  89. /**
  90. * 获取模块:exercise, exaination, sentence, textbook
  91. *
  92. * @return question_module - 模块:exercise, exaination, sentence, textbook
  93. */
  94. public String getQuestionModule() {
  95. return questionModule;
  96. }
  97. /**
  98. * 设置模块:exercise, exaination, sentence, textbook
  99. *
  100. * @param questionModule 模块:exercise, exaination, sentence, textbook
  101. */
  102. public void setQuestionModule(String questionModule) {
  103. this.questionModule = questionModule;
  104. }
  105. /**
  106. * 获取题目id
  107. *
  108. * @return question_id - 题目id
  109. */
  110. public Integer getQuestionId() {
  111. return questionId;
  112. }
  113. /**
  114. * 设置题目id
  115. *
  116. * @param questionId 题目id
  117. */
  118. public void setQuestionId(Integer questionId) {
  119. this.questionId = questionId;
  120. }
  121. /**
  122. * 获取题目编号id
  123. *
  124. * @return question_no_id - 题目编号id
  125. */
  126. public Integer getQuestionNoId() {
  127. return questionNoId;
  128. }
  129. /**
  130. * 设置题目编号id
  131. *
  132. * @param questionNoId 题目编号id
  133. */
  134. public void setQuestionNoId(Integer questionNoId) {
  135. this.questionNoId = questionNoId;
  136. }
  137. /**
  138. * @return question_time
  139. */
  140. public Date getQuestionTime() {
  141. return questionTime;
  142. }
  143. /**
  144. * @param questionTime
  145. */
  146. public void setQuestionTime(Date questionTime) {
  147. this.questionTime = questionTime;
  148. }
  149. /**
  150. * @return create_time
  151. */
  152. public Date getCreateTime() {
  153. return createTime;
  154. }
  155. /**
  156. * @param createTime
  157. */
  158. public void setCreateTime(Date createTime) {
  159. this.createTime = createTime;
  160. }
  161. /**
  162. * @return update_time
  163. */
  164. public Date getUpdateTime() {
  165. return updateTime;
  166. }
  167. /**
  168. * @param updateTime
  169. */
  170. public void setUpdateTime(Date updateTime) {
  171. this.updateTime = updateTime;
  172. }
  173. /**
  174. * @return official_time
  175. */
  176. public Date getOfficialTime() {
  177. return officialTime;
  178. }
  179. /**
  180. * @param officialTime
  181. */
  182. public void setOfficialTime(Date officialTime) {
  183. this.officialTime = officialTime;
  184. }
  185. /**
  186. * @return qx_time
  187. */
  188. public Date getQxTime() {
  189. return qxTime;
  190. }
  191. /**
  192. * @param qxTime
  193. */
  194. public void setQxTime(Date qxTime) {
  195. this.qxTime = qxTime;
  196. }
  197. /**
  198. * @return association_time
  199. */
  200. public Date getAssociationTime() {
  201. return associationTime;
  202. }
  203. /**
  204. * @param associationTime
  205. */
  206. public void setAssociationTime(Date associationTime) {
  207. this.associationTime = associationTime;
  208. }
  209. /**
  210. * @return qa_time
  211. */
  212. public Date getQaTime() {
  213. return qaTime;
  214. }
  215. /**
  216. * @param qaTime
  217. */
  218. public void setQaTime(Date qaTime) {
  219. this.qaTime = qaTime;
  220. }
  221. /**
  222. * @return question_content
  223. */
  224. public String getQuestionContent() {
  225. return questionContent;
  226. }
  227. /**
  228. * @param questionContent
  229. */
  230. public void setQuestionContent(String questionContent) {
  231. this.questionContent = questionContent;
  232. }
  233. /**
  234. * 获取笔记内容
  235. *
  236. * @return content - 笔记内容
  237. */
  238. public String getContent() {
  239. return content;
  240. }
  241. /**
  242. * 设置笔记内容
  243. *
  244. * @param content 笔记内容
  245. */
  246. public void setContent(String content) {
  247. this.content = content;
  248. }
  249. /**
  250. * @return official_content
  251. */
  252. public String getOfficialContent() {
  253. return officialContent;
  254. }
  255. /**
  256. * @param officialContent
  257. */
  258. public void setOfficialContent(String officialContent) {
  259. this.officialContent = officialContent;
  260. }
  261. /**
  262. * @return qx_content
  263. */
  264. public String getQxContent() {
  265. return qxContent;
  266. }
  267. /**
  268. * @param qxContent
  269. */
  270. public void setQxContent(String qxContent) {
  271. this.qxContent = qxContent;
  272. }
  273. /**
  274. * @return association_content
  275. */
  276. public String getAssociationContent() {
  277. return associationContent;
  278. }
  279. /**
  280. * @param associationContent
  281. */
  282. public void setAssociationContent(String associationContent) {
  283. this.associationContent = associationContent;
  284. }
  285. /**
  286. * @return qa_content
  287. */
  288. public String getQaContent() {
  289. return qaContent;
  290. }
  291. /**
  292. * @param qaContent
  293. */
  294. public void setQaContent(String qaContent) {
  295. this.qaContent = qaContent;
  296. }
  297. @Override
  298. public String toString() {
  299. StringBuilder sb = new StringBuilder();
  300. sb.append(getClass().getSimpleName());
  301. sb.append(" [");
  302. sb.append("Hash = ").append(hashCode());
  303. sb.append(", id=").append(id);
  304. sb.append(", userId=").append(userId);
  305. sb.append(", questionModule=").append(questionModule);
  306. sb.append(", questionId=").append(questionId);
  307. sb.append(", questionNoId=").append(questionNoId);
  308. sb.append(", questionTime=").append(questionTime);
  309. sb.append(", createTime=").append(createTime);
  310. sb.append(", updateTime=").append(updateTime);
  311. sb.append(", officialTime=").append(officialTime);
  312. sb.append(", qxTime=").append(qxTime);
  313. sb.append(", associationTime=").append(associationTime);
  314. sb.append(", qaTime=").append(qaTime);
  315. sb.append(", questionContent=").append(questionContent);
  316. sb.append(", content=").append(content);
  317. sb.append(", officialContent=").append(officialContent);
  318. sb.append(", qxContent=").append(qxContent);
  319. sb.append(", associationContent=").append(associationContent);
  320. sb.append(", qaContent=").append(qaContent);
  321. sb.append("]");
  322. return sb.toString();
  323. }
  324. public static UserNoteQuestion.Builder builder() {
  325. return new UserNoteQuestion.Builder();
  326. }
  327. public static class Builder {
  328. private UserNoteQuestion obj;
  329. public Builder() {
  330. this.obj = new UserNoteQuestion();
  331. }
  332. /**
  333. * @param id
  334. */
  335. public Builder id(Integer id) {
  336. obj.setId(id);
  337. return this;
  338. }
  339. /**
  340. * 设置用户id
  341. *
  342. * @param userId 用户id
  343. */
  344. public Builder userId(Integer userId) {
  345. obj.setUserId(userId);
  346. return this;
  347. }
  348. /**
  349. * 设置模块:exercise, exaination, sentence, textbook
  350. *
  351. * @param questionModule 模块:exercise, exaination, sentence, textbook
  352. */
  353. public Builder questionModule(String questionModule) {
  354. obj.setQuestionModule(questionModule);
  355. return this;
  356. }
  357. /**
  358. * 设置题目id
  359. *
  360. * @param questionId 题目id
  361. */
  362. public Builder questionId(Integer questionId) {
  363. obj.setQuestionId(questionId);
  364. return this;
  365. }
  366. /**
  367. * 设置题目编号id
  368. *
  369. * @param questionNoId 题目编号id
  370. */
  371. public Builder questionNoId(Integer questionNoId) {
  372. obj.setQuestionNoId(questionNoId);
  373. return this;
  374. }
  375. /**
  376. * @param questionTime
  377. */
  378. public Builder questionTime(Date questionTime) {
  379. obj.setQuestionTime(questionTime);
  380. return this;
  381. }
  382. /**
  383. * @param createTime
  384. */
  385. public Builder createTime(Date createTime) {
  386. obj.setCreateTime(createTime);
  387. return this;
  388. }
  389. /**
  390. * @param updateTime
  391. */
  392. public Builder updateTime(Date updateTime) {
  393. obj.setUpdateTime(updateTime);
  394. return this;
  395. }
  396. /**
  397. * @param officialTime
  398. */
  399. public Builder officialTime(Date officialTime) {
  400. obj.setOfficialTime(officialTime);
  401. return this;
  402. }
  403. /**
  404. * @param qxTime
  405. */
  406. public Builder qxTime(Date qxTime) {
  407. obj.setQxTime(qxTime);
  408. return this;
  409. }
  410. /**
  411. * @param associationTime
  412. */
  413. public Builder associationTime(Date associationTime) {
  414. obj.setAssociationTime(associationTime);
  415. return this;
  416. }
  417. /**
  418. * @param qaTime
  419. */
  420. public Builder qaTime(Date qaTime) {
  421. obj.setQaTime(qaTime);
  422. return this;
  423. }
  424. /**
  425. * @param questionContent
  426. */
  427. public Builder questionContent(String questionContent) {
  428. obj.setQuestionContent(questionContent);
  429. return this;
  430. }
  431. /**
  432. * 设置笔记内容
  433. *
  434. * @param content 笔记内容
  435. */
  436. public Builder content(String content) {
  437. obj.setContent(content);
  438. return this;
  439. }
  440. /**
  441. * @param officialContent
  442. */
  443. public Builder officialContent(String officialContent) {
  444. obj.setOfficialContent(officialContent);
  445. return this;
  446. }
  447. /**
  448. * @param qxContent
  449. */
  450. public Builder qxContent(String qxContent) {
  451. obj.setQxContent(qxContent);
  452. return this;
  453. }
  454. /**
  455. * @param associationContent
  456. */
  457. public Builder associationContent(String associationContent) {
  458. obj.setAssociationContent(associationContent);
  459. return this;
  460. }
  461. /**
  462. * @param qaContent
  463. */
  464. public Builder qaContent(String qaContent) {
  465. obj.setQaContent(qaContent);
  466. return this;
  467. }
  468. public UserNoteQuestion build() {
  469. return this.obj;
  470. }
  471. }
  472. }