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; } } }