
com.allways.base.model.BaseModel Maven / Gradle / Ivy
package com.allways.base.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;
/**
* @author lirui
*
* 基础model
**/
public class BaseModel {
public long id;
private String createBy;
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date createTime;
private String updateBy;
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
private Date updateTime;
private Long version;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Long getVersion() {
return version;
}
public void setVersion(Long version) {
this.version = version;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy