123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551 |
- package com.qxgmat.data.dao.entity;
- import java.io.Serializable;
- import java.util.Date;
- import javax.persistence.*;
- @Table(name = "user_note_question")
- public class UserNoteQuestion implements Serializable {
- @Id
- @Column(name = "`id`")
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- private Integer id;
- /**
- * 用户id
- */
- @Column(name = "`user_id`")
- private Integer userId;
- /**
- * 模块:exercise, exaination, sentence, textbook
- */
- @Column(name = "`question_module`")
- private String questionModule;
- /**
- * 题目id
- */
- @Column(name = "`question_id`")
- private Integer questionId;
- /**
- * 题目编号id
- */
- @Column(name = "`question_no_id`")
- private Integer questionNoId;
- @Column(name = "`question_time`")
- private Date questionTime;
- @Column(name = "`create_time`")
- private Date createTime;
- @Column(name = "`update_time`")
- private Date updateTime;
- @Column(name = "`official_time`")
- private Date officialTime;
- @Column(name = "`qx_time`")
- private Date qxTime;
- @Column(name = "`association_time`")
- private Date associationTime;
- @Column(name = "`qa_time`")
- private Date qaTime;
- @Column(name = "`question_content`")
- private String questionContent;
- /**
- * 笔记内容
- */
- @Column(name = "`content`")
- private String content;
- @Column(name = "`official_content`")
- private String officialContent;
- @Column(name = "`qx_content`")
- private String qxContent;
- @Column(name = "`association_content`")
- private String associationContent;
- @Column(name = "`qa_content`")
- private String qaContent;
- 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;
- }
- /**
- * 获取模块:exercise, exaination, sentence, textbook
- *
- * @return question_module - 模块:exercise, exaination, sentence, textbook
- */
- public String getQuestionModule() {
- return questionModule;
- }
- /**
- * 设置模块:exercise, exaination, sentence, textbook
- *
- * @param questionModule 模块:exercise, exaination, sentence, textbook
- */
- 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;
- }
- /**
- * @return question_time
- */
- public Date getQuestionTime() {
- return questionTime;
- }
- /**
- * @param questionTime
- */
- public void setQuestionTime(Date questionTime) {
- this.questionTime = questionTime;
- }
- /**
- * @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 official_time
- */
- public Date getOfficialTime() {
- return officialTime;
- }
- /**
- * @param officialTime
- */
- public void setOfficialTime(Date officialTime) {
- this.officialTime = officialTime;
- }
- /**
- * @return qx_time
- */
- public Date getQxTime() {
- return qxTime;
- }
- /**
- * @param qxTime
- */
- public void setQxTime(Date qxTime) {
- this.qxTime = qxTime;
- }
- /**
- * @return association_time
- */
- public Date getAssociationTime() {
- return associationTime;
- }
- /**
- * @param associationTime
- */
- public void setAssociationTime(Date associationTime) {
- this.associationTime = associationTime;
- }
- /**
- * @return qa_time
- */
- public Date getQaTime() {
- return qaTime;
- }
- /**
- * @param qaTime
- */
- public void setQaTime(Date qaTime) {
- this.qaTime = qaTime;
- }
- /**
- * @return question_content
- */
- public String getQuestionContent() {
- return questionContent;
- }
- /**
- * @param questionContent
- */
- public void setQuestionContent(String questionContent) {
- this.questionContent = questionContent;
- }
- /**
- * 获取笔记内容
- *
- * @return content - 笔记内容
- */
- public String getContent() {
- return content;
- }
- /**
- * 设置笔记内容
- *
- * @param content 笔记内容
- */
- public void setContent(String content) {
- this.content = content;
- }
- /**
- * @return official_content
- */
- public String getOfficialContent() {
- return officialContent;
- }
- /**
- * @param officialContent
- */
- public void setOfficialContent(String officialContent) {
- this.officialContent = officialContent;
- }
- /**
- * @return qx_content
- */
- public String getQxContent() {
- return qxContent;
- }
- /**
- * @param qxContent
- */
- public void setQxContent(String qxContent) {
- this.qxContent = qxContent;
- }
- /**
- * @return association_content
- */
- public String getAssociationContent() {
- return associationContent;
- }
- /**
- * @param associationContent
- */
- public void setAssociationContent(String associationContent) {
- this.associationContent = associationContent;
- }
- /**
- * @return qa_content
- */
- public String getQaContent() {
- return qaContent;
- }
- /**
- * @param qaContent
- */
- public void setQaContent(String qaContent) {
- this.qaContent = qaContent;
- }
- @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(", questionModule=").append(questionModule);
- sb.append(", questionId=").append(questionId);
- sb.append(", questionNoId=").append(questionNoId);
- sb.append(", questionTime=").append(questionTime);
- sb.append(", createTime=").append(createTime);
- sb.append(", updateTime=").append(updateTime);
- sb.append(", officialTime=").append(officialTime);
- sb.append(", qxTime=").append(qxTime);
- sb.append(", associationTime=").append(associationTime);
- sb.append(", qaTime=").append(qaTime);
- sb.append(", questionContent=").append(questionContent);
- sb.append(", content=").append(content);
- sb.append(", officialContent=").append(officialContent);
- sb.append(", qxContent=").append(qxContent);
- sb.append(", associationContent=").append(associationContent);
- sb.append(", qaContent=").append(qaContent);
- sb.append("]");
- return sb.toString();
- }
- public static UserNoteQuestion.Builder builder() {
- return new UserNoteQuestion.Builder();
- }
- public static class Builder {
- private UserNoteQuestion obj;
- public Builder() {
- this.obj = new UserNoteQuestion();
- }
- /**
- * @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;
- }
- /**
- * 设置模块:exercise, exaination, sentence, textbook
- *
- * @param questionModule 模块:exercise, exaination, sentence, textbook
- */
- 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;
- }
- /**
- * @param questionTime
- */
- public Builder questionTime(Date questionTime) {
- obj.setQuestionTime(questionTime);
- 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 officialTime
- */
- public Builder officialTime(Date officialTime) {
- obj.setOfficialTime(officialTime);
- return this;
- }
- /**
- * @param qxTime
- */
- public Builder qxTime(Date qxTime) {
- obj.setQxTime(qxTime);
- return this;
- }
- /**
- * @param associationTime
- */
- public Builder associationTime(Date associationTime) {
- obj.setAssociationTime(associationTime);
- return this;
- }
- /**
- * @param qaTime
- */
- public Builder qaTime(Date qaTime) {
- obj.setQaTime(qaTime);
- return this;
- }
- /**
- * @param questionContent
- */
- public Builder questionContent(String questionContent) {
- obj.setQuestionContent(questionContent);
- return this;
- }
- /**
- * 设置笔记内容
- *
- * @param content 笔记内容
- */
- public Builder content(String content) {
- obj.setContent(content);
- return this;
- }
- /**
- * @param officialContent
- */
- public Builder officialContent(String officialContent) {
- obj.setOfficialContent(officialContent);
- return this;
- }
- /**
- * @param qxContent
- */
- public Builder qxContent(String qxContent) {
- obj.setQxContent(qxContent);
- return this;
- }
- /**
- * @param associationContent
- */
- public Builder associationContent(String associationContent) {
- obj.setAssociationContent(associationContent);
- return this;
- }
- /**
- * @param qaContent
- */
- public Builder qaContent(String qaContent) {
- obj.setQaContent(qaContent);
- return this;
- }
- public UserNoteQuestion build() {
- return this.obj;
- }
- }
- }
|