123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474 |
- package com.qxgmat.data.dao.entity;
- import java.io.Serializable;
- import javax.persistence.*;
- @Table(name = "exercise_struct")
- public class ExerciseStruct implements Serializable {
- @Id
- @Column(name = "`id`")
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- private Integer id;
- /**
- * 中文名称
- */
- @Column(name = "`title_zh`")
- private String titleZh;
- /**
- * 英文名称
- */
- @Column(name = "`title_en`")
- private String titleEn;
- /**
- * 父级id
- */
- @Column(name = "`parent_id`")
- private Integer parentId;
- /**
- * 排序:从大到小
- */
- @Column(name = "`sort`")
- private Integer sort;
- /**
- * 层级:从1开始
- */
- @Column(name = "`level`")
- private Integer level;
- /**
- * 提问状态:0关闭,1开启
- */
- @Column(name = "`question_status`")
- private Integer questionStatus;
- /**
- * 是否是课程
- */
- @Column(name = "`is_course`")
- private Integer isCourse;
- /**
- * 是否是资料
- */
- @Column(name = "`is_data`")
- private Integer isData;
- /**
- * 是否是长难句:每一层都继承
- */
- @Column(name = "`is_sentence`")
- private Integer isSentence;
- /**
- * 是否是考试:每一层都继承
- */
- @Column(name = "`is_examination`")
- private Integer isExamination;
- @Column(name = "`extend`")
- private String extend;
- /**
- * 描述
- */
- @Column(name = "`description`")
- private String description;
- private static final long serialVersionUID = 1L;
- /**
- * @return id
- */
- public Integer getId() {
- return id;
- }
- /**
- * @param id
- */
- public void setId(Integer id) {
- this.id = id;
- }
- /**
- * 获取中文名称
- *
- * @return title_zh - 中文名称
- */
- public String getTitleZh() {
- return titleZh;
- }
- /**
- * 设置中文名称
- *
- * @param titleZh 中文名称
- */
- public void setTitleZh(String titleZh) {
- this.titleZh = titleZh;
- }
- /**
- * 获取英文名称
- *
- * @return title_en - 英文名称
- */
- public String getTitleEn() {
- return titleEn;
- }
- /**
- * 设置英文名称
- *
- * @param titleEn 英文名称
- */
- public void setTitleEn(String titleEn) {
- this.titleEn = titleEn;
- }
- /**
- * 获取父级id
- *
- * @return parent_id - 父级id
- */
- public Integer getParentId() {
- return parentId;
- }
- /**
- * 设置父级id
- *
- * @param parentId 父级id
- */
- public void setParentId(Integer parentId) {
- this.parentId = parentId;
- }
- /**
- * 获取排序:从大到小
- *
- * @return sort - 排序:从大到小
- */
- public Integer getSort() {
- return sort;
- }
- /**
- * 设置排序:从大到小
- *
- * @param sort 排序:从大到小
- */
- public void setSort(Integer sort) {
- this.sort = sort;
- }
- /**
- * 获取层级:从1开始
- *
- * @return level - 层级:从1开始
- */
- public Integer getLevel() {
- return level;
- }
- /**
- * 设置层级:从1开始
- *
- * @param level 层级:从1开始
- */
- public void setLevel(Integer level) {
- this.level = level;
- }
- /**
- * 获取提问状态:0关闭,1开启
- *
- * @return question_status - 提问状态:0关闭,1开启
- */
- public Integer getQuestionStatus() {
- return questionStatus;
- }
- /**
- * 设置提问状态:0关闭,1开启
- *
- * @param questionStatus 提问状态:0关闭,1开启
- */
- public void setQuestionStatus(Integer questionStatus) {
- this.questionStatus = questionStatus;
- }
- /**
- * 获取是否是课程
- *
- * @return is_course - 是否是课程
- */
- public Integer getIsCourse() {
- return isCourse;
- }
- /**
- * 设置是否是课程
- *
- * @param isCourse 是否是课程
- */
- public void setIsCourse(Integer isCourse) {
- this.isCourse = isCourse;
- }
- /**
- * 获取是否是资料
- *
- * @return is_data - 是否是资料
- */
- public Integer getIsData() {
- return isData;
- }
- /**
- * 设置是否是资料
- *
- * @param isData 是否是资料
- */
- public void setIsData(Integer isData) {
- this.isData = isData;
- }
- /**
- * 获取是否是长难句:每一层都继承
- *
- * @return is_sentence - 是否是长难句:每一层都继承
- */
- public Integer getIsSentence() {
- return isSentence;
- }
- /**
- * 设置是否是长难句:每一层都继承
- *
- * @param isSentence 是否是长难句:每一层都继承
- */
- public void setIsSentence(Integer isSentence) {
- this.isSentence = isSentence;
- }
- /**
- * 获取是否是考试:每一层都继承
- *
- * @return is_examination - 是否是考试:每一层都继承
- */
- public Integer getIsExamination() {
- return isExamination;
- }
- /**
- * 设置是否是考试:每一层都继承
- *
- * @param isExamination 是否是考试:每一层都继承
- */
- public void setIsExamination(Integer isExamination) {
- this.isExamination = isExamination;
- }
- /**
- * @return extend
- */
- public String getExtend() {
- return extend;
- }
- /**
- * @param extend
- */
- public void setExtend(String extend) {
- this.extend = extend;
- }
- /**
- * 获取描述
- *
- * @return description - 描述
- */
- public String getDescription() {
- return description;
- }
- /**
- * 设置描述
- *
- * @param description 描述
- */
- public void setDescription(String description) {
- this.description = description;
- }
- @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(", titleZh=").append(titleZh);
- sb.append(", titleEn=").append(titleEn);
- sb.append(", parentId=").append(parentId);
- sb.append(", sort=").append(sort);
- sb.append(", level=").append(level);
- sb.append(", questionStatus=").append(questionStatus);
- sb.append(", isCourse=").append(isCourse);
- sb.append(", isData=").append(isData);
- sb.append(", isSentence=").append(isSentence);
- sb.append(", isExamination=").append(isExamination);
- sb.append(", extend=").append(extend);
- sb.append(", description=").append(description);
- sb.append("]");
- return sb.toString();
- }
- public static ExerciseStruct.Builder builder() {
- return new ExerciseStruct.Builder();
- }
- public static class Builder {
- private ExerciseStruct obj;
- public Builder() {
- this.obj = new ExerciseStruct();
- }
- /**
- * @param id
- */
- public Builder id(Integer id) {
- obj.setId(id);
- return this;
- }
- /**
- * 设置中文名称
- *
- * @param titleZh 中文名称
- */
- public Builder titleZh(String titleZh) {
- obj.setTitleZh(titleZh);
- return this;
- }
- /**
- * 设置英文名称
- *
- * @param titleEn 英文名称
- */
- public Builder titleEn(String titleEn) {
- obj.setTitleEn(titleEn);
- return this;
- }
- /**
- * 设置父级id
- *
- * @param parentId 父级id
- */
- public Builder parentId(Integer parentId) {
- obj.setParentId(parentId);
- return this;
- }
- /**
- * 设置排序:从大到小
- *
- * @param sort 排序:从大到小
- */
- public Builder sort(Integer sort) {
- obj.setSort(sort);
- return this;
- }
- /**
- * 设置层级:从1开始
- *
- * @param level 层级:从1开始
- */
- public Builder level(Integer level) {
- obj.setLevel(level);
- return this;
- }
- /**
- * 设置提问状态:0关闭,1开启
- *
- * @param questionStatus 提问状态:0关闭,1开启
- */
- public Builder questionStatus(Integer questionStatus) {
- obj.setQuestionStatus(questionStatus);
- return this;
- }
- /**
- * 设置是否是课程
- *
- * @param isCourse 是否是课程
- */
- public Builder isCourse(Integer isCourse) {
- obj.setIsCourse(isCourse);
- return this;
- }
- /**
- * 设置是否是资料
- *
- * @param isData 是否是资料
- */
- public Builder isData(Integer isData) {
- obj.setIsData(isData);
- return this;
- }
- /**
- * 设置是否是长难句:每一层都继承
- *
- * @param isSentence 是否是长难句:每一层都继承
- */
- public Builder isSentence(Integer isSentence) {
- obj.setIsSentence(isSentence);
- return this;
- }
- /**
- * 设置是否是考试:每一层都继承
- *
- * @param isExamination 是否是考试:每一层都继承
- */
- public Builder isExamination(Integer isExamination) {
- obj.setIsExamination(isExamination);
- return this;
- }
- /**
- * @param extend
- */
- public Builder extend(String extend) {
- obj.setExtend(extend);
- return this;
- }
- /**
- * 设置描述
- *
- * @param description 描述
- */
- public Builder description(String description) {
- obj.setDescription(description);
- return this;
- }
- public ExerciseStruct build() {
- return this.obj;
- }
- }
- }
|