ExaminationPaperQuestion.java 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. package com.qxgmat.data.dao.entity;
  2. import java.io.Serializable;
  3. import javax.persistence.*;
  4. @Table(name = "examination_paper_question")
  5. public class ExaminationPaperQuestion implements Serializable {
  6. @Id
  7. @Column(name = "`id`")
  8. @GeneratedValue(strategy = GenerationType.IDENTITY)
  9. private Integer id;
  10. @Column(name = "`paper_id`")
  11. private Integer paperId;
  12. @Column(name = "`question_id`")
  13. private Integer questionId;
  14. private static final long serialVersionUID = 1L;
  15. /**
  16. * @return id
  17. */
  18. public Integer getId() {
  19. return id;
  20. }
  21. /**
  22. * @param id
  23. */
  24. public void setId(Integer id) {
  25. this.id = id;
  26. }
  27. /**
  28. * @return paper_id
  29. */
  30. public Integer getPaperId() {
  31. return paperId;
  32. }
  33. /**
  34. * @param paperId
  35. */
  36. public void setPaperId(Integer paperId) {
  37. this.paperId = paperId;
  38. }
  39. /**
  40. * @return question_id
  41. */
  42. public Integer getQuestionId() {
  43. return questionId;
  44. }
  45. /**
  46. * @param questionId
  47. */
  48. public void setQuestionId(Integer questionId) {
  49. this.questionId = questionId;
  50. }
  51. @Override
  52. public String toString() {
  53. StringBuilder sb = new StringBuilder();
  54. sb.append(getClass().getSimpleName());
  55. sb.append(" [");
  56. sb.append("Hash = ").append(hashCode());
  57. sb.append(", id=").append(id);
  58. sb.append(", paperId=").append(paperId);
  59. sb.append(", questionId=").append(questionId);
  60. sb.append("]");
  61. return sb.toString();
  62. }
  63. public static ExaminationPaperQuestion.Builder builder() {
  64. return new ExaminationPaperQuestion.Builder();
  65. }
  66. public static class Builder {
  67. private ExaminationPaperQuestion obj;
  68. public Builder() {
  69. this.obj = new ExaminationPaperQuestion();
  70. }
  71. /**
  72. * @param id
  73. */
  74. public Builder id(Integer id) {
  75. obj.setId(id);
  76. return this;
  77. }
  78. /**
  79. * @param paperId
  80. */
  81. public Builder paperId(Integer paperId) {
  82. obj.setPaperId(paperId);
  83. return this;
  84. }
  85. /**
  86. * @param questionId
  87. */
  88. public Builder questionId(Integer questionId) {
  89. obj.setQuestionId(questionId);
  90. return this;
  91. }
  92. public ExaminationPaperQuestion build() {
  93. return this.obj;
  94. }
  95. }
  96. }