TextbookPaper.java 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. package com.qxgmat.data.dao.entity;
  2. import java.io.Serializable;
  3. import java.util.Date;
  4. import javax.persistence.*;
  5. @Table(name = "textbook_paper")
  6. public class TextbookPaper implements Serializable {
  7. @Id
  8. @Column(name = "`id`")
  9. @GeneratedValue(strategy = GenerationType.IDENTITY)
  10. private Integer id;
  11. @Column(name = "`create_time`")
  12. private Date createTime;
  13. /**
  14. * 题目编号ids:json
  15. */
  16. @Column(name = "`question_no_ids`")
  17. private String questionNoIds;
  18. private static final long serialVersionUID = 1L;
  19. /**
  20. * @return id
  21. */
  22. public Integer getId() {
  23. return id;
  24. }
  25. /**
  26. * @param id
  27. */
  28. public void setId(Integer id) {
  29. this.id = id;
  30. }
  31. /**
  32. * @return create_time
  33. */
  34. public Date getCreateTime() {
  35. return createTime;
  36. }
  37. /**
  38. * @param createTime
  39. */
  40. public void setCreateTime(Date createTime) {
  41. this.createTime = createTime;
  42. }
  43. /**
  44. * 获取题目编号ids:json
  45. *
  46. * @return question_no_ids - 题目编号ids:json
  47. */
  48. public String getQuestionNoIds() {
  49. return questionNoIds;
  50. }
  51. /**
  52. * 设置题目编号ids:json
  53. *
  54. * @param questionNoIds 题目编号ids:json
  55. */
  56. public void setQuestionNoIds(String questionNoIds) {
  57. this.questionNoIds = questionNoIds;
  58. }
  59. @Override
  60. public String toString() {
  61. StringBuilder sb = new StringBuilder();
  62. sb.append(getClass().getSimpleName());
  63. sb.append(" [");
  64. sb.append("Hash = ").append(hashCode());
  65. sb.append(", id=").append(id);
  66. sb.append(", createTime=").append(createTime);
  67. sb.append(", questionNoIds=").append(questionNoIds);
  68. sb.append("]");
  69. return sb.toString();
  70. }
  71. public static TextbookPaper.Builder builder() {
  72. return new TextbookPaper.Builder();
  73. }
  74. public static class Builder {
  75. private TextbookPaper obj;
  76. public Builder() {
  77. this.obj = new TextbookPaper();
  78. }
  79. /**
  80. * @param id
  81. */
  82. public Builder id(Integer id) {
  83. obj.setId(id);
  84. return this;
  85. }
  86. /**
  87. * @param createTime
  88. */
  89. public Builder createTime(Date createTime) {
  90. obj.setCreateTime(createTime);
  91. return this;
  92. }
  93. /**
  94. * 设置题目编号ids:json
  95. *
  96. * @param questionNoIds 题目编号ids:json
  97. */
  98. public Builder questionNoIds(String questionNoIds) {
  99. obj.setQuestionNoIds(questionNoIds);
  100. return this;
  101. }
  102. public TextbookPaper build() {
  103. return this.obj;
  104. }
  105. }
  106. }