123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- package com.qxgmat.data.dao.entity;
- import java.io.Serializable;
- import javax.persistence.*;
- @Table(name = "examination_paper")
- public class ExaminationPaper implements Serializable {
- @Id
- @Column(name = "`id`")
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- private Integer id;
- @Column(name = "`struct_id`")
- private Integer structId;
- /**
- * 标题
- */
- @Column(name = "`title`")
- private String title;
- /**
- * 题目数量
- */
- @Column(name = "`question_number`")
- private Integer questionNumber;
- /**
- * 开放状态:0关闭,1开启
- */
- @Column(name = "`status`")
- private Integer status;
- /**
- * 题目编号ids:json
- */
- @Column(name = "`question_no_ids`")
- private String questionNoIds;
- private static final long serialVersionUID = 1L;
- /**
- * @return id
- */
- public Integer getId() {
- return id;
- }
- /**
- * @param id
- */
- public void setId(Integer id) {
- this.id = id;
- }
- /**
- * @return struct_id
- */
- public Integer getStructId() {
- return structId;
- }
- /**
- * @param structId
- */
- public void setStructId(Integer structId) {
- this.structId = structId;
- }
- /**
- * 获取标题
- *
- * @return title - 标题
- */
- public String getTitle() {
- return title;
- }
- /**
- * 设置标题
- *
- * @param title 标题
- */
- public void setTitle(String title) {
- this.title = title;
- }
- /**
- * 获取题目数量
- *
- * @return question_number - 题目数量
- */
- public Integer getQuestionNumber() {
- return questionNumber;
- }
- /**
- * 设置题目数量
- *
- * @param questionNumber 题目数量
- */
- public void setQuestionNumber(Integer questionNumber) {
- this.questionNumber = questionNumber;
- }
- /**
- * 获取开放状态:0关闭,1开启
- *
- * @return status - 开放状态:0关闭,1开启
- */
- public Integer getStatus() {
- return status;
- }
- /**
- * 设置开放状态:0关闭,1开启
- *
- * @param status 开放状态:0关闭,1开启
- */
- public void setStatus(Integer status) {
- this.status = status;
- }
- /**
- * 获取题目编号ids:json
- *
- * @return question_no_ids - 题目编号ids:json
- */
- public String getQuestionNoIds() {
- return questionNoIds;
- }
- /**
- * 设置题目编号ids:json
- *
- * @param questionNoIds 题目编号ids:json
- */
- public void setQuestionNoIds(String questionNoIds) {
- this.questionNoIds = questionNoIds;
- }
- @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(", structId=").append(structId);
- sb.append(", title=").append(title);
- sb.append(", questionNumber=").append(questionNumber);
- sb.append(", status=").append(status);
- sb.append(", questionNoIds=").append(questionNoIds);
- sb.append("]");
- return sb.toString();
- }
- public static ExaminationPaper.Builder builder() {
- return new ExaminationPaper.Builder();
- }
- public static class Builder {
- private ExaminationPaper obj;
- public Builder() {
- this.obj = new ExaminationPaper();
- }
- /**
- * @param id
- */
- public Builder id(Integer id) {
- obj.setId(id);
- return this;
- }
- /**
- * @param structId
- */
- public Builder structId(Integer structId) {
- obj.setStructId(structId);
- return this;
- }
- /**
- * 设置标题
- *
- * @param title 标题
- */
- public Builder title(String title) {
- obj.setTitle(title);
- return this;
- }
- /**
- * 设置题目数量
- *
- * @param questionNumber 题目数量
- */
- public Builder questionNumber(Integer questionNumber) {
- obj.setQuestionNumber(questionNumber);
- return this;
- }
- /**
- * 设置开放状态:0关闭,1开启
- *
- * @param status 开放状态:0关闭,1开启
- */
- public Builder status(Integer status) {
- obj.setStatus(status);
- return this;
- }
- /**
- * 设置题目编号ids:json
- *
- * @param questionNoIds 题目编号ids:json
- */
- public Builder questionNoIds(String questionNoIds) {
- obj.setQuestionNoIds(questionNoIds);
- return this;
- }
- public ExaminationPaper build() {
- return this.obj;
- }
- }
- }
|