123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404 |
- package com.qxgmat.data.dao.entity;
- import java.io.Serializable;
- import javax.persistence.*;
- @Table(name = "exercise_paper")
- public class ExercisePaper implements Serializable {
- @Id
- @Column(name = "`id`")
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- private Integer id;
- /**
- * 题型:从struct上获取extend
- */
- @Column(name = "`question_type`")
- private String questionType;
- @Column(name = "`title`")
- private String title;
- /**
- * 组卷序号
- */
- @Column(name = "`no`")
- private Integer no;
- /**
- * 组卷逻辑:order ,place,difficult,error
- */
- @Column(name = "`logic`")
- private String logic;
- /**
- * 逻辑
- */
- @Column(name = "`logic_extend`")
- private String logicExtend;
- /**
- * 教材
- */
- @Column(name = "`struct_three`")
- private Integer structThree;
- /**
- * 分册
- */
- @Column(name = "`struct_four`")
- private Integer structFour;
- /**
- * 题目数量
- */
- @Column(name = "`question_number`")
- private Integer questionNumber;
- /**
- * 题目编号ids:json
- */
- @Column(name = "`question_no_ids`")
- private Integer[] questionNoIds;
- /**
- * 开放状态:0关闭,1开启
- */
- @Column(name = "`status`")
- private Integer status;
- private static final long serialVersionUID = 1L;
- /**
- * @return id
- */
- public Integer getId() {
- return id;
- }
- /**
- * @param id
- */
- public void setId(Integer id) {
- this.id = id;
- }
- /**
- * 获取题型:从struct上获取extend
- *
- * @return question_type - 题型:从struct上获取extend
- */
- public String getQuestionType() {
- return questionType;
- }
- /**
- * 设置题型:从struct上获取extend
- *
- * @param questionType 题型:从struct上获取extend
- */
- public void setQuestionType(String questionType) {
- this.questionType = questionType;
- }
- /**
- * @return title
- */
- public String getTitle() {
- return title;
- }
- /**
- * @param title
- */
- public void setTitle(String title) {
- this.title = title;
- }
- /**
- * 获取组卷序号
- *
- * @return no - 组卷序号
- */
- public Integer getNo() {
- return no;
- }
- /**
- * 设置组卷序号
- *
- * @param no 组卷序号
- */
- public void setNo(Integer no) {
- this.no = no;
- }
- /**
- * 获取组卷逻辑:order ,place,difficult,error
- *
- * @return logic - 组卷逻辑:order ,place,difficult,error
- */
- public String getLogic() {
- return logic;
- }
- /**
- * 设置组卷逻辑:order ,place,difficult,error
- *
- * @param logic 组卷逻辑:order ,place,difficult,error
- */
- public void setLogic(String logic) {
- this.logic = logic;
- }
- /**
- * 获取逻辑
- *
- * @return logic_extend - 逻辑
- */
- public String getLogicExtend() {
- return logicExtend;
- }
- /**
- * 设置逻辑
- *
- * @param logicExtend 逻辑
- */
- public void setLogicExtend(String logicExtend) {
- this.logicExtend = logicExtend;
- }
- /**
- * 获取教材
- *
- * @return struct_three - 教材
- */
- public Integer getStructThree() {
- return structThree;
- }
- /**
- * 设置教材
- *
- * @param structThree 教材
- */
- public void setStructThree(Integer structThree) {
- this.structThree = structThree;
- }
- /**
- * 获取分册
- *
- * @return struct_four - 分册
- */
- public Integer getStructFour() {
- return structFour;
- }
- /**
- * 设置分册
- *
- * @param structFour 分册
- */
- public void setStructFour(Integer structFour) {
- this.structFour = structFour;
- }
- /**
- * 获取题目数量
- *
- * @return question_number - 题目数量
- */
- public Integer getQuestionNumber() {
- return questionNumber;
- }
- /**
- * 设置题目数量
- *
- * @param questionNumber 题目数量
- */
- public void setQuestionNumber(Integer questionNumber) {
- this.questionNumber = questionNumber;
- }
- /**
- * 获取题目编号ids:json
- *
- * @return question_no_ids - 题目编号ids:json
- */
- public Integer[] getQuestionNoIds() {
- return questionNoIds;
- }
- /**
- * 设置题目编号ids:json
- *
- * @param questionNoIds 题目编号ids:json
- */
- public void setQuestionNoIds(Integer[] questionNoIds) {
- this.questionNoIds = questionNoIds;
- }
- /**
- * 获取开放状态: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;
- }
- @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(", questionType=").append(questionType);
- sb.append(", title=").append(title);
- sb.append(", no=").append(no);
- sb.append(", logic=").append(logic);
- sb.append(", logicExtend=").append(logicExtend);
- sb.append(", structThree=").append(structThree);
- sb.append(", structFour=").append(structFour);
- sb.append(", questionNumber=").append(questionNumber);
- sb.append(", questionNoIds=").append(questionNoIds);
- sb.append(", status=").append(status);
- sb.append("]");
- return sb.toString();
- }
- public static ExercisePaper.Builder builder() {
- return new ExercisePaper.Builder();
- }
- public static class Builder {
- private ExercisePaper obj;
- public Builder() {
- this.obj = new ExercisePaper();
- }
- /**
- * @param id
- */
- public Builder id(Integer id) {
- obj.setId(id);
- return this;
- }
- /**
- * 设置题型:从struct上获取extend
- *
- * @param questionType 题型:从struct上获取extend
- */
- public Builder questionType(String questionType) {
- obj.setQuestionType(questionType);
- return this;
- }
- /**
- * @param title
- */
- public Builder title(String title) {
- obj.setTitle(title);
- return this;
- }
- /**
- * 设置组卷序号
- *
- * @param no 组卷序号
- */
- public Builder no(Integer no) {
- obj.setNo(no);
- return this;
- }
- /**
- * 设置组卷逻辑:order ,place,difficult,error
- *
- * @param logic 组卷逻辑:order ,place,difficult,error
- */
- public Builder logic(String logic) {
- obj.setLogic(logic);
- return this;
- }
- /**
- * 设置逻辑
- *
- * @param logicExtend 逻辑
- */
- public Builder logicExtend(String logicExtend) {
- obj.setLogicExtend(logicExtend);
- return this;
- }
- /**
- * 设置教材
- *
- * @param structThree 教材
- */
- public Builder structThree(Integer structThree) {
- obj.setStructThree(structThree);
- return this;
- }
- /**
- * 设置分册
- *
- * @param structFour 分册
- */
- public Builder structFour(Integer structFour) {
- obj.setStructFour(structFour);
- return this;
- }
- /**
- * 设置题目数量
- *
- * @param questionNumber 题目数量
- */
- public Builder questionNumber(Integer questionNumber) {
- obj.setQuestionNumber(questionNumber);
- return this;
- }
- /**
- * 设置题目编号ids:json
- *
- * @param questionNoIds 题目编号ids:json
- */
- public Builder questionNoIds(Integer[] questionNoIds) {
- obj.setQuestionNoIds(questionNoIds);
- return this;
- }
- /**
- * 设置开放状态:0关闭,1开启
- *
- * @param status 开放状态:0关闭,1开启
- */
- public Builder status(Integer status) {
- obj.setStatus(status);
- return this;
- }
- public ExercisePaper build() {
- return this.obj;
- }
- }
- }
|