123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746 |
- package com.qxgmat.data.dao.entity;
- import java.io.Serializable;
- import java.util.Date;
- import javax.persistence.*;
- @Table(name = "user_ask_question")
- public class UserAskQuestion implements Serializable {
- @Id
- @Column(name = "`id`")
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- private Integer id;
- /**
- * 用户id
- */
- @Column(name = "`user_id`")
- private Integer userId;
- /**
- * 用户做题id
- */
- @Column(name = "`user_question_id`")
- private Integer userQuestionId;
- /**
- * 题目板块
- */
- @Column(name = "`ask_module`")
- private String askModule;
- /**
- * 题目模块
- */
- @Column(name = "`question_module`")
- private String questionModule;
- /**
- * 题目id
- */
- @Column(name = "`question_id`")
- private Integer questionId;
- /**
- * 题目编号id
- */
- @Column(name = "`question_no_id`")
- private Integer questionNoId;
- /**
- * 课程对应recordid
- */
- @Column(name = "`record_id`")
- private Integer recordId;
- /**
- * 问题对象:question,official,qx,association
- */
- @Column(name = "`target`")
- private String target;
- /**
- * 提问优先回答时间
- */
- @Column(name = "`ask_time`")
- private Integer askTime;
- /**
- * 过期时间
- */
- @Column(name = "`expire_time`")
- private Date expireTime;
- /**
- * 回答状态: 0未回答,1回答,2忽略
- */
- @Column(name = "`answer_status`")
- private Integer answerStatus;
- /**
- * 回答人id
- */
- @Column(name = "`manager_id`")
- private Integer managerId;
- /**
- * 展示状态:0关闭,1打开
- */
- @Column(name = "`show_status`")
- private Integer showStatus;
- /**
- * 回答时间
- */
- @Column(name = "`answer_time`")
- private Date answerTime;
- /**
- * 排序:从大到小
- */
- @Column(name = "`sort`")
- private Integer sort;
- @Column(name = "`create_time`")
- private Date createTime;
- @Column(name = "`update_time`")
- private Date updateTime;
- /**
- * 问题内容
- */
- @Column(name = "`origin_content`")
- private String originContent;
- /**
- * 提问
- */
- @Column(name = "`content`")
- private String content;
- /**
- * 回答
- */
- @Column(name = "`answer`")
- private String answer;
- private static final long serialVersionUID = 1L;
- /**
- * @return id
- */
- public Integer getId() {
- return id;
- }
- /**
- * @param id
- */
- public void setId(Integer id) {
- this.id = id;
- }
- /**
- * 获取用户id
- *
- * @return user_id - 用户id
- */
- public Integer getUserId() {
- return userId;
- }
- /**
- * 设置用户id
- *
- * @param userId 用户id
- */
- public void setUserId(Integer userId) {
- this.userId = userId;
- }
- /**
- * 获取用户做题id
- *
- * @return user_question_id - 用户做题id
- */
- public Integer getUserQuestionId() {
- return userQuestionId;
- }
- /**
- * 设置用户做题id
- *
- * @param userQuestionId 用户做题id
- */
- public void setUserQuestionId(Integer userQuestionId) {
- this.userQuestionId = userQuestionId;
- }
- /**
- * 获取题目板块
- *
- * @return ask_module - 题目板块
- */
- public String getAskModule() {
- return askModule;
- }
- /**
- * 设置题目板块
- *
- * @param askModule 题目板块
- */
- public void setAskModule(String askModule) {
- this.askModule = askModule;
- }
- /**
- * 获取题目模块
- *
- * @return question_module - 题目模块
- */
- public String getQuestionModule() {
- return questionModule;
- }
- /**
- * 设置题目模块
- *
- * @param questionModule 题目模块
- */
- public void setQuestionModule(String questionModule) {
- this.questionModule = questionModule;
- }
- /**
- * 获取题目id
- *
- * @return question_id - 题目id
- */
- public Integer getQuestionId() {
- return questionId;
- }
- /**
- * 设置题目id
- *
- * @param questionId 题目id
- */
- public void setQuestionId(Integer questionId) {
- this.questionId = questionId;
- }
- /**
- * 获取题目编号id
- *
- * @return question_no_id - 题目编号id
- */
- public Integer getQuestionNoId() {
- return questionNoId;
- }
- /**
- * 设置题目编号id
- *
- * @param questionNoId 题目编号id
- */
- public void setQuestionNoId(Integer questionNoId) {
- this.questionNoId = questionNoId;
- }
- /**
- * 获取课程对应recordid
- *
- * @return record_id - 课程对应recordid
- */
- public Integer getRecordId() {
- return recordId;
- }
- /**
- * 设置课程对应recordid
- *
- * @param recordId 课程对应recordid
- */
- public void setRecordId(Integer recordId) {
- this.recordId = recordId;
- }
- /**
- * 获取问题对象:question,official,qx,association
- *
- * @return target - 问题对象:question,official,qx,association
- */
- public String getTarget() {
- return target;
- }
- /**
- * 设置问题对象:question,official,qx,association
- *
- * @param target 问题对象:question,official,qx,association
- */
- public void setTarget(String target) {
- this.target = target;
- }
- /**
- * 获取提问优先回答时间
- *
- * @return ask_time - 提问优先回答时间
- */
- public Integer getAskTime() {
- return askTime;
- }
- /**
- * 设置提问优先回答时间
- *
- * @param askTime 提问优先回答时间
- */
- public void setAskTime(Integer askTime) {
- this.askTime = askTime;
- }
- /**
- * 获取过期时间
- *
- * @return expire_time - 过期时间
- */
- public Date getExpireTime() {
- return expireTime;
- }
- /**
- * 设置过期时间
- *
- * @param expireTime 过期时间
- */
- public void setExpireTime(Date expireTime) {
- this.expireTime = expireTime;
- }
- /**
- * 获取回答状态: 0未回答,1回答,2忽略
- *
- * @return answer_status - 回答状态: 0未回答,1回答,2忽略
- */
- public Integer getAnswerStatus() {
- return answerStatus;
- }
- /**
- * 设置回答状态: 0未回答,1回答,2忽略
- *
- * @param answerStatus 回答状态: 0未回答,1回答,2忽略
- */
- public void setAnswerStatus(Integer answerStatus) {
- this.answerStatus = answerStatus;
- }
- /**
- * 获取回答人id
- *
- * @return manager_id - 回答人id
- */
- public Integer getManagerId() {
- return managerId;
- }
- /**
- * 设置回答人id
- *
- * @param managerId 回答人id
- */
- public void setManagerId(Integer managerId) {
- this.managerId = managerId;
- }
- /**
- * 获取展示状态:0关闭,1打开
- *
- * @return show_status - 展示状态:0关闭,1打开
- */
- public Integer getShowStatus() {
- return showStatus;
- }
- /**
- * 设置展示状态:0关闭,1打开
- *
- * @param showStatus 展示状态:0关闭,1打开
- */
- public void setShowStatus(Integer showStatus) {
- this.showStatus = showStatus;
- }
- /**
- * 获取回答时间
- *
- * @return answer_time - 回答时间
- */
- public Date getAnswerTime() {
- return answerTime;
- }
- /**
- * 设置回答时间
- *
- * @param answerTime 回答时间
- */
- public void setAnswerTime(Date answerTime) {
- this.answerTime = answerTime;
- }
- /**
- * 获取排序:从大到小
- *
- * @return sort - 排序:从大到小
- */
- public Integer getSort() {
- return sort;
- }
- /**
- * 设置排序:从大到小
- *
- * @param sort 排序:从大到小
- */
- public void setSort(Integer sort) {
- this.sort = sort;
- }
- /**
- * @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 origin_content - 问题内容
- */
- public String getOriginContent() {
- return originContent;
- }
- /**
- * 设置问题内容
- *
- * @param originContent 问题内容
- */
- public void setOriginContent(String originContent) {
- this.originContent = originContent;
- }
- /**
- * 获取提问
- *
- * @return content - 提问
- */
- public String getContent() {
- return content;
- }
- /**
- * 设置提问
- *
- * @param content 提问
- */
- public void setContent(String content) {
- this.content = content;
- }
- /**
- * 获取回答
- *
- * @return answer - 回答
- */
- public String getAnswer() {
- return answer;
- }
- /**
- * 设置回答
- *
- * @param answer 回答
- */
- public void setAnswer(String answer) {
- this.answer = answer;
- }
- @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(", userId=").append(userId);
- sb.append(", userQuestionId=").append(userQuestionId);
- sb.append(", askModule=").append(askModule);
- sb.append(", questionModule=").append(questionModule);
- sb.append(", questionId=").append(questionId);
- sb.append(", questionNoId=").append(questionNoId);
- sb.append(", recordId=").append(recordId);
- sb.append(", target=").append(target);
- sb.append(", askTime=").append(askTime);
- sb.append(", expireTime=").append(expireTime);
- sb.append(", answerStatus=").append(answerStatus);
- sb.append(", managerId=").append(managerId);
- sb.append(", showStatus=").append(showStatus);
- sb.append(", answerTime=").append(answerTime);
- sb.append(", sort=").append(sort);
- sb.append(", createTime=").append(createTime);
- sb.append(", updateTime=").append(updateTime);
- sb.append(", originContent=").append(originContent);
- sb.append(", content=").append(content);
- sb.append(", answer=").append(answer);
- sb.append("]");
- return sb.toString();
- }
- public static UserAskQuestion.Builder builder() {
- return new UserAskQuestion.Builder();
- }
- public static class Builder {
- private UserAskQuestion obj;
- public Builder() {
- this.obj = new UserAskQuestion();
- }
- /**
- * @param id
- */
- public Builder id(Integer id) {
- obj.setId(id);
- return this;
- }
- /**
- * 设置用户id
- *
- * @param userId 用户id
- */
- public Builder userId(Integer userId) {
- obj.setUserId(userId);
- return this;
- }
- /**
- * 设置用户做题id
- *
- * @param userQuestionId 用户做题id
- */
- public Builder userQuestionId(Integer userQuestionId) {
- obj.setUserQuestionId(userQuestionId);
- return this;
- }
- /**
- * 设置题目板块
- *
- * @param askModule 题目板块
- */
- public Builder askModule(String askModule) {
- obj.setAskModule(askModule);
- return this;
- }
- /**
- * 设置题目模块
- *
- * @param questionModule 题目模块
- */
- public Builder questionModule(String questionModule) {
- obj.setQuestionModule(questionModule);
- return this;
- }
- /**
- * 设置题目id
- *
- * @param questionId 题目id
- */
- public Builder questionId(Integer questionId) {
- obj.setQuestionId(questionId);
- return this;
- }
- /**
- * 设置题目编号id
- *
- * @param questionNoId 题目编号id
- */
- public Builder questionNoId(Integer questionNoId) {
- obj.setQuestionNoId(questionNoId);
- return this;
- }
- /**
- * 设置课程对应recordid
- *
- * @param recordId 课程对应recordid
- */
- public Builder recordId(Integer recordId) {
- obj.setRecordId(recordId);
- return this;
- }
- /**
- * 设置问题对象:question,official,qx,association
- *
- * @param target 问题对象:question,official,qx,association
- */
- public Builder target(String target) {
- obj.setTarget(target);
- return this;
- }
- /**
- * 设置提问优先回答时间
- *
- * @param askTime 提问优先回答时间
- */
- public Builder askTime(Integer askTime) {
- obj.setAskTime(askTime);
- return this;
- }
- /**
- * 设置过期时间
- *
- * @param expireTime 过期时间
- */
- public Builder expireTime(Date expireTime) {
- obj.setExpireTime(expireTime);
- return this;
- }
- /**
- * 设置回答
- *
- * @param answer 回答
- */
- public Builder answer(String answer) {
- obj.setAnswer(answer);
- return this;
- }
- /**
- * 设置回答状态: 0未回答,1回答,2忽略
- *
- * @param answerStatus 回答状态: 0未回答,1回答,2忽略
- */
- public Builder answerStatus(Integer answerStatus) {
- obj.setAnswerStatus(answerStatus);
- return this;
- }
- /**
- * 设置回答人id
- *
- * @param managerId 回答人id
- */
- public Builder managerId(Integer managerId) {
- obj.setManagerId(managerId);
- return this;
- }
- /**
- * 设置展示状态:0关闭,1打开
- *
- * @param showStatus 展示状态:0关闭,1打开
- */
- public Builder showStatus(Integer showStatus) {
- obj.setShowStatus(showStatus);
- return this;
- }
- /**
- * 设置回答时间
- *
- * @param answerTime 回答时间
- */
- public Builder answerTime(Date answerTime) {
- obj.setAnswerTime(answerTime);
- return this;
- }
- /**
- * 设置排序:从大到小
- *
- * @param sort 排序:从大到小
- */
- public Builder sort(Integer sort) {
- obj.setSort(sort);
- 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 originContent 问题内容
- */
- public Builder originContent(String originContent) {
- obj.setOriginContent(originContent);
- return this;
- }
- /**
- * 设置提问
- *
- * @param content 提问
- */
- public Builder content(String content) {
- obj.setContent(content);
- return this;
- }
- public UserAskQuestion build() {
- return this.obj;
- }
- }
- }
|