123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- package com.qxgmat.data.dao.entity;
- import java.io.Serializable;
- import javax.persistence.*;
- @Table(name = "examination_paper_question")
- public class ExaminationPaperQuestion implements Serializable {
- @Id
- @Column(name = "`id`")
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- private Integer id;
- @Column(name = "`paper_id`")
- private Integer paperId;
- @Column(name = "`question_id`")
- private Integer questionId;
- private static final long serialVersionUID = 1L;
- /**
- * @return id
- */
- public Integer getId() {
- return id;
- }
- /**
- * @param id
- */
- public void setId(Integer id) {
- this.id = id;
- }
- /**
- * @return paper_id
- */
- public Integer getPaperId() {
- return paperId;
- }
- /**
- * @param paperId
- */
- public void setPaperId(Integer paperId) {
- this.paperId = paperId;
- }
- /**
- * @return question_id
- */
- public Integer getQuestionId() {
- return questionId;
- }
- /**
- * @param questionId
- */
- public void setQuestionId(Integer questionId) {
- this.questionId = questionId;
- }
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append(getClass().getSimpleName());
- sb.append(" [");
- sb.append("Hash = ").append(hashCode());
- sb.append(", id=").append(id);
- sb.append(", paperId=").append(paperId);
- sb.append(", questionId=").append(questionId);
- sb.append("]");
- return sb.toString();
- }
- public static ExaminationPaperQuestion.Builder builder() {
- return new ExaminationPaperQuestion.Builder();
- }
- public static class Builder {
- private ExaminationPaperQuestion obj;
- public Builder() {
- this.obj = new ExaminationPaperQuestion();
- }
- /**
- * @param id
- */
- public Builder id(Integer id) {
- obj.setId(id);
- return this;
- }
- /**
- * @param paperId
- */
- public Builder paperId(Integer paperId) {
- obj.setPaperId(paperId);
- return this;
- }
- /**
- * @param questionId
- */
- public Builder questionId(Integer questionId) {
- obj.setQuestionId(questionId);
- return this;
- }
- public ExaminationPaperQuestion build() {
- return this.obj;
- }
- }
- }
|