123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580 |
- package com.qxgmat.data.dao.entity;
- import java.io.Serializable;
- import java.util.Date;
- import javax.persistence.*;
- @Table(name = "faq")
- public class Faq implements Serializable {
- @Id
- @Column(name = "`id`")
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- private Integer id;
- /**
- * 用户id
- */
- @Column(name = "`user_id`")
- private Integer userId;
- /**
- * 提问者邮箱
- */
- @Column(name = "`email`")
- private String email;
- /**
- * 回复站内信
- */
- @Column(name = "`message`")
- private Integer message;
- /**
- * 频道
- */
- @Column(name = "`channel`")
- private String channel;
- /**
- * 位置
- */
- @Column(name = "`position`")
- private Integer position;
- /**
- * 处理人
- */
- @Column(name = "`manager_id`")
- private Integer managerId;
- /**
- * 是否展示
- */
- @Column(name = "`is_show`")
- private Integer isShow;
- /**
- * 是否用于展示
- */
- @Column(name = "`is_special`")
- private Integer isSpecial;
- /**
- * 问答状态:0未回答,1回答,忽略
- */
- @Column(name = "`answer_status`")
- private Integer answerStatus;
- /**
- * 回复时间
- */
- @Column(name = "`answer_time`")
- private Date answerTime;
- /**
- * 是否系统创建
- */
- @Column(name = "`is_system`")
- private Integer isSystem;
- /**
- * 排序
- */
- @Column(name = "`sort`")
- private Integer sort;
- @Column(name = "`create_time`")
- private Date createTime;
- /**
- * 提问内容
- */
- @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;
- }
- /**
- * 获取提问者邮箱
- *
- * @return email - 提问者邮箱
- */
- public String getEmail() {
- return email;
- }
- /**
- * 设置提问者邮箱
- *
- * @param email 提问者邮箱
- */
- public void setEmail(String email) {
- this.email = email;
- }
- /**
- * 获取回复站内信
- *
- * @return message - 回复站内信
- */
- public Integer getMessage() {
- return message;
- }
- /**
- * 设置回复站内信
- *
- * @param message 回复站内信
- */
- public void setMessage(Integer message) {
- this.message = message;
- }
- /**
- * 获取频道
- *
- * @return channel - 频道
- */
- public String getChannel() {
- return channel;
- }
- /**
- * 设置频道
- *
- * @param channel 频道
- */
- public void setChannel(String channel) {
- this.channel = channel;
- }
- /**
- * 获取位置
- *
- * @return position - 位置
- */
- public Integer getPosition() {
- return position;
- }
- /**
- * 设置位置
- *
- * @param position 位置
- */
- public void setPosition(Integer position) {
- this.position = position;
- }
- /**
- * 获取处理人
- *
- * @return manager_id - 处理人
- */
- public Integer getManagerId() {
- return managerId;
- }
- /**
- * 设置处理人
- *
- * @param managerId 处理人
- */
- public void setManagerId(Integer managerId) {
- this.managerId = managerId;
- }
- /**
- * 获取是否展示
- *
- * @return is_show - 是否展示
- */
- public Integer getIsShow() {
- return isShow;
- }
- /**
- * 设置是否展示
- *
- * @param isShow 是否展示
- */
- public void setIsShow(Integer isShow) {
- this.isShow = isShow;
- }
- /**
- * 获取是否用于展示
- *
- * @return is_special - 是否用于展示
- */
- public Integer getIsSpecial() {
- return isSpecial;
- }
- /**
- * 设置是否用于展示
- *
- * @param isSpecial 是否用于展示
- */
- public void setIsSpecial(Integer isSpecial) {
- this.isSpecial = isSpecial;
- }
- /**
- * 获取问答状态:0未回答,1回答,忽略
- *
- * @return answer_status - 问答状态:0未回答,1回答,忽略
- */
- public Integer getAnswerStatus() {
- return answerStatus;
- }
- /**
- * 设置问答状态:0未回答,1回答,忽略
- *
- * @param answerStatus 问答状态:0未回答,1回答,忽略
- */
- public void setAnswerStatus(Integer answerStatus) {
- this.answerStatus = answerStatus;
- }
- /**
- * 获取回复时间
- *
- * @return answer_time - 回复时间
- */
- public Date getAnswerTime() {
- return answerTime;
- }
- /**
- * 设置回复时间
- *
- * @param answerTime 回复时间
- */
- public void setAnswerTime(Date answerTime) {
- this.answerTime = answerTime;
- }
- /**
- * 获取是否系统创建
- *
- * @return is_system - 是否系统创建
- */
- public Integer getIsSystem() {
- return isSystem;
- }
- /**
- * 设置是否系统创建
- *
- * @param isSystem 是否系统创建
- */
- public void setIsSystem(Integer isSystem) {
- this.isSystem = isSystem;
- }
- /**
- * 获取排序
- *
- * @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 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(", email=").append(email);
- sb.append(", message=").append(message);
- sb.append(", channel=").append(channel);
- sb.append(", position=").append(position);
- sb.append(", managerId=").append(managerId);
- sb.append(", isShow=").append(isShow);
- sb.append(", isSpecial=").append(isSpecial);
- sb.append(", answerStatus=").append(answerStatus);
- sb.append(", answerTime=").append(answerTime);
- sb.append(", isSystem=").append(isSystem);
- sb.append(", sort=").append(sort);
- sb.append(", createTime=").append(createTime);
- sb.append(", content=").append(content);
- sb.append(", answer=").append(answer);
- sb.append("]");
- return sb.toString();
- }
- public static Faq.Builder builder() {
- return new Faq.Builder();
- }
- public static class Builder {
- private Faq obj;
- public Builder() {
- this.obj = new Faq();
- }
- /**
- * @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;
- }
- /**
- * 设置提问者邮箱
- *
- * @param email 提问者邮箱
- */
- public Builder email(String email) {
- obj.setEmail(email);
- return this;
- }
- /**
- * 设置回复站内信
- *
- * @param message 回复站内信
- */
- public Builder message(Integer message) {
- obj.setMessage(message);
- return this;
- }
- /**
- * 设置频道
- *
- * @param channel 频道
- */
- public Builder channel(String channel) {
- obj.setChannel(channel);
- return this;
- }
- /**
- * 设置位置
- *
- * @param position 位置
- */
- public Builder position(Integer position) {
- obj.setPosition(position);
- return this;
- }
- /**
- * 设置处理人
- *
- * @param managerId 处理人
- */
- public Builder managerId(Integer managerId) {
- obj.setManagerId(managerId);
- return this;
- }
- /**
- * 设置是否展示
- *
- * @param isShow 是否展示
- */
- public Builder isShow(Integer isShow) {
- obj.setIsShow(isShow);
- return this;
- }
- /**
- * 设置是否用于展示
- *
- * @param isSpecial 是否用于展示
- */
- public Builder isSpecial(Integer isSpecial) {
- obj.setIsSpecial(isSpecial);
- return this;
- }
- /**
- * 设置回复内容
- *
- * @param answer 回复内容
- */
- public Builder answer(String answer) {
- obj.setAnswer(answer);
- return this;
- }
- /**
- * 设置问答状态:0未回答,1回答,忽略
- *
- * @param answerStatus 问答状态:0未回答,1回答,忽略
- */
- public Builder answerStatus(Integer answerStatus) {
- obj.setAnswerStatus(answerStatus);
- return this;
- }
- /**
- * 设置回复时间
- *
- * @param answerTime 回复时间
- */
- public Builder answerTime(Date answerTime) {
- obj.setAnswerTime(answerTime);
- return this;
- }
- /**
- * 设置是否系统创建
- *
- * @param isSystem 是否系统创建
- */
- public Builder isSystem(Integer isSystem) {
- obj.setIsSystem(isSystem);
- 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 content 提问内容
- */
- public Builder content(String content) {
- obj.setContent(content);
- return this;
- }
- public Faq build() {
- return this.obj;
- }
- }
- }
|