package com.qxgmat.data.dao.entity; import java.io.Serializable; import java.util.Date; import javax.persistence.*; @Table(name = "feedback_error") public class FeedbackError implements Serializable { @Id @Column(name = "`id`") @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; /** * 用户id */ @Column(name = "`user_id`") private Integer userId; /** * 题目编号id */ @Column(name = "`question_no_id`") private Integer questionNoId; @Column(name = "`type`") private Integer type; @Column(name = "`create_time`") private Date createTime; @Column(name = "`content`") private String content; 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 question_no_id - 题目编号id */ public Integer getQuestionNoId() { return questionNoId; } /** * 设置题目编号id * * @param questionNoId 题目编号id */ public void setQuestionNoId(Integer questionNoId) { this.questionNoId = questionNoId; } /** * @return type */ public Integer getType() { return type; } /** * @param type */ public void setType(Integer type) { this.type = type; } /** * @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; } @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(", questionNoId=").append(questionNoId); sb.append(", type=").append(type); sb.append(", createTime=").append(createTime); sb.append(", content=").append(content); sb.append("]"); return sb.toString(); } public static FeedbackError.Builder builder() { return new FeedbackError.Builder(); } public static class Builder { private FeedbackError obj; public Builder() { this.obj = new FeedbackError(); } /** * @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 questionNoId 题目编号id */ public Builder questionNoId(Integer questionNoId) { obj.setQuestionNoId(questionNoId); return this; } /** * @param type */ public Builder type(Integer type) { obj.setType(type); 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 FeedbackError build() { return this.obj; } } }