123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378 |
- package com.qxgmat.data.dao.entity;
- import java.io.Serializable;
- import javax.persistence.*;
- @Table(name = "examination_struct")
- public class ExaminationStruct 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 = "`is_adapt`")
- private Integer isAdapt;
- /**
- * 提问状态
- */
- @Column(name = "`question_status`")
- private Integer questionStatus;
- /**
- * 对应服务
- */
- @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 is_adapt - 难度适应性:0非难度适应性,1难度适应性
- */
- public Integer getIsAdapt() {
- return isAdapt;
- }
- /**
- * 设置难度适应性:0非难度适应性,1难度适应性
- *
- * @param isAdapt 难度适应性:0非难度适应性,1难度适应性
- */
- public void setIsAdapt(Integer isAdapt) {
- this.isAdapt = isAdapt;
- }
- /**
- * 获取提问状态
- *
- * @return question_status - 提问状态
- */
- public Integer getQuestionStatus() {
- return questionStatus;
- }
- /**
- * 设置提问状态
- *
- * @param questionStatus 提问状态
- */
- public void setQuestionStatus(Integer questionStatus) {
- this.questionStatus = questionStatus;
- }
- /**
- * 获取对应服务
- *
- * @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(", isAdapt=").append(isAdapt);
- sb.append(", questionStatus=").append(questionStatus);
- sb.append(", extend=").append(extend);
- sb.append(", description=").append(description);
- sb.append("]");
- return sb.toString();
- }
- public static ExaminationStruct.Builder builder() {
- return new ExaminationStruct.Builder();
- }
- public static class Builder {
- private ExaminationStruct obj;
- public Builder() {
- this.obj = new ExaminationStruct();
- }
- /**
- * @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 isAdapt 难度适应性:0非难度适应性,1难度适应性
- */
- public Builder isAdapt(Integer isAdapt) {
- obj.setIsAdapt(isAdapt);
- return this;
- }
- /**
- * 设置提问状态
- *
- * @param questionStatus 提问状态
- */
- public Builder questionStatus(Integer questionStatus) {
- obj.setQuestionStatus(questionStatus);
- 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 ExaminationStruct build() {
- return this.obj;
- }
- }
- }
|