123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841 |
- package com.qxgmat.data.dao.entity;
- import com.alibaba.fastjson.JSONObject;
- import java.io.Serializable;
- import java.util.Date;
- import javax.persistence.*;
- @Table(name = "question")
- public class Question implements Serializable {
- @Id
- @Column(name = "`id`")
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- private Integer id;
- /**
- * 关键词,逗号分隔
- */
- @Column(name = "`keyword`")
- private String[] keyword;
- @Column(name = "`question_module`")
- private String questionModule;
- /**
- * 题型
- */
- @Column(name = "`question_type`")
- private String questionType;
- @Column(name = "`place`")
- private String place;
- /**
- * 难度
- */
- @Column(name = "`difficult`")
- private String difficult;
- /**
- * 难度分
- */
- @Column(name = "`difficult_score`")
- private Float difficultScore;
- /**
- * 简介:自动从题干提取
- */
- @Column(name = "`description`")
- private String description;
- /**
- * 内容:json
- */
- @Column(name = "`content`")
- private JSONObject content;
- /**
- * 答案:json
- */
- @Column(name = "`answer`")
- private JSONObject answer;
- @Column(name = "`question_time`")
- private Date questionTime;
- @Column(name = "`qx_time`")
- private Date qxTime;
- @Column(name = "`official_time`")
- private Date officialTime;
- @Column(name = "`association_time`")
- private Date associationTime;
- /**
- * 题源联想:json
- */
- @Column(name = "`association_content`")
- private Integer[] associationContent;
- /**
- * 总作答时间
- */
- @Column(name = "`total_time`")
- private Integer totalTime;
- /**
- * 总作答次数
- */
- @Column(name = "`total_number`")
- private Integer totalNumber;
- /**
- * 总正确次数
- */
- @Column(name = "`total_correct`")
- private Integer totalCorrect;
- /**
- * 收藏数
- */
- @Column(name = "`collect_number`")
- private Integer collectNumber;
- @Column(name = "`create_time`")
- private Date createTime;
- @Column(name = "`update_time`")
- private Date updateTime;
- /**
- * 答案分布
- */
- @Column(name = "`answer_distributed`")
- private JSONObject answerDistributed;
- /**
- * 题干
- */
- @Column(name = "`stem`")
- private String stem;
- @Column(name = "`qx_content`")
- private String qxContent;
- @Column(name = "`official_content`")
- private String officialContent;
- @Column(name = "`chinese_content`")
- private String chineseContent;
- private static final long serialVersionUID = 1L;
- /**
- * @return id
- */
- public Integer getId() {
- return id;
- }
- /**
- * @param id
- */
- public void setId(Integer id) {
- this.id = id;
- }
- /**
- * 获取关键词,逗号分隔
- *
- * @return keyword - 关键词,逗号分隔
- */
- public String[] getKeyword() {
- return keyword;
- }
- /**
- * 设置关键词,逗号分隔
- *
- * @param keyword 关键词,逗号分隔
- */
- public void setKeyword(String[] keyword) {
- this.keyword = keyword;
- }
- /**
- * @return question_module
- */
- public String getQuestionModule() {
- return questionModule;
- }
- /**
- * @param questionModule
- */
- public void setQuestionModule(String questionModule) {
- this.questionModule = questionModule;
- }
- /**
- * 获取题型
- *
- * @return question_type - 题型
- */
- public String getQuestionType() {
- return questionType;
- }
- /**
- * 设置题型
- *
- * @param questionType 题型
- */
- public void setQuestionType(String questionType) {
- this.questionType = questionType;
- }
- /**
- * @return place
- */
- public String getPlace() {
- return place;
- }
- /**
- * @param place
- */
- public void setPlace(String place) {
- this.place = place;
- }
- /**
- * 获取难度
- *
- * @return difficult - 难度
- */
- public String getDifficult() {
- return difficult;
- }
- /**
- * 设置难度
- *
- * @param difficult 难度
- */
- public void setDifficult(String difficult) {
- this.difficult = difficult;
- }
- /**
- * 获取难度分
- *
- * @return difficult_score - 难度分
- */
- public Float getDifficultScore() {
- return difficultScore;
- }
- /**
- * 设置难度分
- *
- * @param difficultScore 难度分
- */
- public void setDifficultScore(Float difficultScore) {
- this.difficultScore = difficultScore;
- }
- /**
- * 获取简介:自动从题干提取
- *
- * @return description - 简介:自动从题干提取
- */
- public String getDescription() {
- return description;
- }
- /**
- * 设置简介:自动从题干提取
- *
- * @param description 简介:自动从题干提取
- */
- public void setDescription(String description) {
- this.description = description;
- }
- /**
- * 获取内容:json
- *
- * @return content - 内容:json
- */
- public JSONObject getContent() {
- return content;
- }
- /**
- * 设置内容:json
- *
- * @param content 内容:json
- */
- public void setContent(JSONObject content) {
- this.content = content;
- }
- /**
- * 获取答案:json
- *
- * @return answer - 答案:json
- */
- public JSONObject getAnswer() {
- return answer;
- }
- /**
- * 设置答案:json
- *
- * @param answer 答案:json
- */
- public void setAnswer(JSONObject answer) {
- this.answer = answer;
- }
- /**
- * @return question_time
- */
- public Date getQuestionTime() {
- return questionTime;
- }
- /**
- * @param questionTime
- */
- public void setQuestionTime(Date questionTime) {
- this.questionTime = questionTime;
- }
- /**
- * @return qx_time
- */
- public Date getQxTime() {
- return qxTime;
- }
- /**
- * @param qxTime
- */
- public void setQxTime(Date qxTime) {
- this.qxTime = qxTime;
- }
- /**
- * @return official_time
- */
- public Date getOfficialTime() {
- return officialTime;
- }
- /**
- * @param officialTime
- */
- public void setOfficialTime(Date officialTime) {
- this.officialTime = officialTime;
- }
- /**
- * @return association_time
- */
- public Date getAssociationTime() {
- return associationTime;
- }
- /**
- * @param associationTime
- */
- public void setAssociationTime(Date associationTime) {
- this.associationTime = associationTime;
- }
- /**
- * 获取题源联想:json
- *
- * @return association_content - 题源联想:json
- */
- public Integer[] getAssociationContent() {
- return associationContent;
- }
- /**
- * 设置题源联想:json
- *
- * @param associationContent 题源联想:json
- */
- public void setAssociationContent(Integer[] associationContent) {
- this.associationContent = associationContent;
- }
- /**
- * 获取总作答时间
- *
- * @return total_time - 总作答时间
- */
- public Integer getTotalTime() {
- return totalTime;
- }
- /**
- * 设置总作答时间
- *
- * @param totalTime 总作答时间
- */
- public void setTotalTime(Integer totalTime) {
- this.totalTime = totalTime;
- }
- /**
- * 获取总作答次数
- *
- * @return total_number - 总作答次数
- */
- public Integer getTotalNumber() {
- return totalNumber;
- }
- /**
- * 设置总作答次数
- *
- * @param totalNumber 总作答次数
- */
- public void setTotalNumber(Integer totalNumber) {
- this.totalNumber = totalNumber;
- }
- /**
- * 获取总正确次数
- *
- * @return total_correct - 总正确次数
- */
- public Integer getTotalCorrect() {
- return totalCorrect;
- }
- /**
- * 设置总正确次数
- *
- * @param totalCorrect 总正确次数
- */
- public void setTotalCorrect(Integer totalCorrect) {
- this.totalCorrect = totalCorrect;
- }
- /**
- * 获取收藏数
- *
- * @return collect_number - 收藏数
- */
- public Integer getCollectNumber() {
- return collectNumber;
- }
- /**
- * 设置收藏数
- *
- * @param collectNumber 收藏数
- */
- public void setCollectNumber(Integer collectNumber) {
- this.collectNumber = collectNumber;
- }
- /**
- * @return create_time
- */
- public Date getCreateTime() {
- return createTime;
- }
- /**
- * @param createTime
- */
- public void setCreateTime(Date createTime) {
- this.createTime = createTime;
- }
- /**
- * @return update_time
- */
- public Date getUpdateTime() {
- return updateTime;
- }
- /**
- * @param updateTime
- */
- public void setUpdateTime(Date updateTime) {
- this.updateTime = updateTime;
- }
- /**
- * 获取答案分布
- *
- * @return answer_distributed - 答案分布
- */
- public JSONObject getAnswerDistributed() {
- return answerDistributed;
- }
- /**
- * 设置答案分布
- *
- * @param answerDistributed 答案分布
- */
- public void setAnswerDistributed(JSONObject answerDistributed) {
- this.answerDistributed = answerDistributed;
- }
- /**
- * 获取题干
- *
- * @return stem - 题干
- */
- public String getStem() {
- return stem;
- }
- /**
- * 设置题干
- *
- * @param stem 题干
- */
- public void setStem(String stem) {
- this.stem = stem;
- }
- /**
- * @return qx_content
- */
- public String getQxContent() {
- return qxContent;
- }
- /**
- * @param qxContent
- */
- public void setQxContent(String qxContent) {
- this.qxContent = qxContent;
- }
- /**
- * @return official_content
- */
- public String getOfficialContent() {
- return officialContent;
- }
- /**
- * @param officialContent
- */
- public void setOfficialContent(String officialContent) {
- this.officialContent = officialContent;
- }
- /**
- * @return chinese_content
- */
- public String getChineseContent() {
- return chineseContent;
- }
- /**
- * @param chineseContent
- */
- public void setChineseContent(String chineseContent) {
- this.chineseContent = chineseContent;
- }
- @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(", keyword=").append(keyword);
- sb.append(", questionModule=").append(questionModule);
- sb.append(", questionType=").append(questionType);
- sb.append(", place=").append(place);
- sb.append(", difficult=").append(difficult);
- sb.append(", difficultScore=").append(difficultScore);
- sb.append(", description=").append(description);
- sb.append(", content=").append(content);
- sb.append(", answer=").append(answer);
- sb.append(", questionTime=").append(questionTime);
- sb.append(", qxTime=").append(qxTime);
- sb.append(", officialTime=").append(officialTime);
- sb.append(", associationTime=").append(associationTime);
- sb.append(", associationContent=").append(associationContent);
- sb.append(", totalTime=").append(totalTime);
- sb.append(", totalNumber=").append(totalNumber);
- sb.append(", totalCorrect=").append(totalCorrect);
- sb.append(", collectNumber=").append(collectNumber);
- sb.append(", createTime=").append(createTime);
- sb.append(", updateTime=").append(updateTime);
- sb.append(", answerDistributed=").append(answerDistributed);
- sb.append(", stem=").append(stem);
- sb.append(", qxContent=").append(qxContent);
- sb.append(", officialContent=").append(officialContent);
- sb.append(", chineseContent=").append(chineseContent);
- sb.append("]");
- return sb.toString();
- }
- public static Question.Builder builder() {
- return new Question.Builder();
- }
- public static class Builder {
- private Question obj;
- public Builder() {
- this.obj = new Question();
- }
- /**
- * @param id
- */
- public Builder id(Integer id) {
- obj.setId(id);
- return this;
- }
- /**
- * 设置关键词,逗号分隔
- *
- * @param keyword 关键词,逗号分隔
- */
- public Builder keyword(String[] keyword) {
- obj.setKeyword(keyword);
- return this;
- }
- /**
- * @param questionModule
- */
- public Builder questionModule(String questionModule) {
- obj.setQuestionModule(questionModule);
- return this;
- }
- /**
- * 设置题型
- *
- * @param questionType 题型
- */
- public Builder questionType(String questionType) {
- obj.setQuestionType(questionType);
- return this;
- }
- /**
- * @param place
- */
- public Builder place(String place) {
- obj.setPlace(place);
- return this;
- }
- /**
- * 设置难度
- *
- * @param difficult 难度
- */
- public Builder difficult(String difficult) {
- obj.setDifficult(difficult);
- return this;
- }
- /**
- * 设置难度分
- *
- * @param difficultScore 难度分
- */
- public Builder difficultScore(Float difficultScore) {
- obj.setDifficultScore(difficultScore);
- return this;
- }
- /**
- * 设置简介:自动从题干提取
- *
- * @param description 简介:自动从题干提取
- */
- public Builder description(String description) {
- obj.setDescription(description);
- return this;
- }
- /**
- * 设置内容:json
- *
- * @param content 内容:json
- */
- public Builder content(JSONObject content) {
- obj.setContent(content);
- return this;
- }
- /**
- * 设置答案:json
- *
- * @param answer 答案:json
- */
- public Builder answer(JSONObject answer) {
- obj.setAnswer(answer);
- return this;
- }
- /**
- * 设置答案分布
- *
- * @param answerDistributed 答案分布
- */
- public Builder answerDistributed(JSONObject answerDistributed) {
- obj.setAnswerDistributed(answerDistributed);
- return this;
- }
- /**
- * @param questionTime
- */
- public Builder questionTime(Date questionTime) {
- obj.setQuestionTime(questionTime);
- return this;
- }
- /**
- * @param qxTime
- */
- public Builder qxTime(Date qxTime) {
- obj.setQxTime(qxTime);
- return this;
- }
- /**
- * @param officialTime
- */
- public Builder officialTime(Date officialTime) {
- obj.setOfficialTime(officialTime);
- return this;
- }
- /**
- * @param associationTime
- */
- public Builder associationTime(Date associationTime) {
- obj.setAssociationTime(associationTime);
- return this;
- }
- /**
- * 设置题源联想:json
- *
- * @param associationContent 题源联想:json
- */
- public Builder associationContent(Integer[] associationContent) {
- obj.setAssociationContent(associationContent);
- return this;
- }
- /**
- * 设置总作答时间
- *
- * @param totalTime 总作答时间
- */
- public Builder totalTime(Integer totalTime) {
- obj.setTotalTime(totalTime);
- return this;
- }
- /**
- * 设置总作答次数
- *
- * @param totalNumber 总作答次数
- */
- public Builder totalNumber(Integer totalNumber) {
- obj.setTotalNumber(totalNumber);
- return this;
- }
- /**
- * 设置总正确次数
- *
- * @param totalCorrect 总正确次数
- */
- public Builder totalCorrect(Integer totalCorrect) {
- obj.setTotalCorrect(totalCorrect);
- return this;
- }
- /**
- * 设置收藏数
- *
- * @param collectNumber 收藏数
- */
- public Builder collectNumber(Integer collectNumber) {
- obj.setCollectNumber(collectNumber);
- return this;
- }
- /**
- * @param createTime
- */
- public Builder createTime(Date createTime) {
- obj.setCreateTime(createTime);
- return this;
- }
- /**
- * @param updateTime
- */
- public Builder updateTime(Date updateTime) {
- obj.setUpdateTime(updateTime);
- return this;
- }
- /**
- * 设置题干
- *
- * @param stem 题干
- */
- public Builder stem(String stem) {
- obj.setStem(stem);
- return this;
- }
- /**
- * @param qxContent
- */
- public Builder qxContent(String qxContent) {
- obj.setQxContent(qxContent);
- return this;
- }
- /**
- * @param officialContent
- */
- public Builder officialContent(String officialContent) {
- obj.setOfficialContent(officialContent);
- return this;
- }
- /**
- * @param chineseContent
- */
- public Builder chineseContent(String chineseContent) {
- obj.setChineseContent(chineseContent);
- return this;
- }
- public Question build() {
- return this.obj;
- }
- }
- }
|