123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300 |
- package com.qxgmat.data.dao.entity;
- import java.io.Serializable;
- import java.util.Date;
- import javax.persistence.*;
- @Table(name = "course_data_history")
- public class CourseDataHistory implements Serializable {
- @Id
- @Column(name = "`id`")
- @GeneratedValue(strategy = GenerationType.IDENTITY)
- private Integer id;
- /**
- * 资料id
- */
- @Column(name = "`data_id`")
- private Integer dataId;
- /**
- * 版本名称
- */
- @Column(name = "`version`")
- private String version;
- /**
- * 更新时间
- */
- @Column(name = "`time`")
- private Date time;
- /**
- * 更新位置
- */
- @Column(name = "`position`")
- private String position;
- @Column(name = "`create_time`")
- private Date createTime;
- /**
- * 原文
- */
- @Column(name = "`origin_content`")
- private String originContent;
- /**
- * 更正
- */
- @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 data_id - 资料id
- */
- public Integer getDataId() {
- return dataId;
- }
- /**
- * 设置资料id
- *
- * @param dataId 资料id
- */
- public void setDataId(Integer dataId) {
- this.dataId = dataId;
- }
- /**
- * 获取版本名称
- *
- * @return version - 版本名称
- */
- public String getVersion() {
- return version;
- }
- /**
- * 设置版本名称
- *
- * @param version 版本名称
- */
- public void setVersion(String version) {
- this.version = version;
- }
- /**
- * 获取更新时间
- *
- * @return time - 更新时间
- */
- public Date getTime() {
- return time;
- }
- /**
- * 设置更新时间
- *
- * @param time 更新时间
- */
- public void setTime(Date time) {
- this.time = time;
- }
- /**
- * 获取更新位置
- *
- * @return position - 更新位置
- */
- public String getPosition() {
- return position;
- }
- /**
- * 设置更新位置
- *
- * @param position 更新位置
- */
- public void setPosition(String position) {
- this.position = position;
- }
- /**
- * @return create_time
- */
- public Date getCreateTime() {
- return createTime;
- }
- /**
- * @param createTime
- */
- public void setCreateTime(Date createTime) {
- this.createTime = createTime;
- }
- /**
- * 获取原文
- *
- * @return origin_content - 原文
- */
- public String getOriginContent() {
- return originContent;
- }
- /**
- * 设置原文
- *
- * @param originContent 原文
- */
- public void setOriginContent(String originContent) {
- this.originContent = originContent;
- }
- /**
- * 获取更正
- *
- * @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(", dataId=").append(dataId);
- sb.append(", version=").append(version);
- sb.append(", time=").append(time);
- sb.append(", position=").append(position);
- sb.append(", createTime=").append(createTime);
- sb.append(", originContent=").append(originContent);
- sb.append(", content=").append(content);
- sb.append("]");
- return sb.toString();
- }
- public static CourseDataHistory.Builder builder() {
- return new CourseDataHistory.Builder();
- }
- public static class Builder {
- private CourseDataHistory obj;
- public Builder() {
- this.obj = new CourseDataHistory();
- }
- /**
- * @param id
- */
- public Builder id(Integer id) {
- obj.setId(id);
- return this;
- }
- /**
- * 设置资料id
- *
- * @param dataId 资料id
- */
- public Builder dataId(Integer dataId) {
- obj.setDataId(dataId);
- return this;
- }
- /**
- * 设置版本名称
- *
- * @param version 版本名称
- */
- public Builder version(String version) {
- obj.setVersion(version);
- return this;
- }
- /**
- * 设置更新时间
- *
- * @param time 更新时间
- */
- public Builder time(Date time) {
- obj.setTime(time);
- return this;
- }
- /**
- * 设置更新位置
- *
- * @param position 更新位置
- */
- public Builder position(String position) {
- obj.setPosition(position);
- return this;
- }
- /**
- * @param createTime
- */
- public Builder createTime(Date createTime) {
- obj.setCreateTime(createTime);
- return this;
- }
- /**
- * 设置原文
- *
- * @param originContent 原文
- */
- public Builder originContent(String originContent) {
- obj.setOriginContent(originContent);
- return this;
- }
- /**
- * 设置更正
- *
- * @param content 更正
- */
- public Builder content(String content) {
- obj.setContent(content);
- return this;
- }
- public CourseDataHistory build() {
- return this.obj;
- }
- }
- }
|