io.geewit.data.jpa.envers.EnversRevisionEntity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gw-data-jpa-envers-repository Show documentation
Show all versions of gw-data-jpa-envers-repository Show documentation
A Java Utils Libraray By Geewit
The newest version!
package io.geewit.data.jpa.envers;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.envers.RevisionNumber;
import org.hibernate.envers.RevisionTimestamp;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
/**
数据库变动日志
@author geewit
@since 2015-5-18
*/
public abstract class EnversRevisionEntity implements Serializable {
@RevisionNumber
protected Long id;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08")
@RevisionTimestamp
protected Date revisionTime;
/**
* @return 版本主键
*/
@Transient
@SuppressWarnings({"unused"})
public Long getId() {
return this.id;
}
/**
* 版本主键
* @param id 版本主键
*/
@SuppressWarnings({"unused"})
public void setId(Long id) {
this.id = id;
}
@Transient
@SuppressWarnings({"unused"})
public Date getRevisionTime() {
return revisionTime;
}
/**
* 版本时间
* @param revisionTime 版本时间
*/
@SuppressWarnings({"unused"})
public void setRevisionTime(Date revisionTime) {
this.revisionTime = revisionTime;
}
/**
* @return 操作人id
*/
@Transient
public abstract O getOperatorId();
/**
* @param operatorId 操作人id
*/
@SuppressWarnings({"unused"})
public abstract void setOperatorId(O operatorId);
/**
* 操作人名
*/
@Transient
public abstract String getOperatorName();
/**
* 操作人名
* @param operatorName 操作人名
*/
@SuppressWarnings({"unused"})
public abstract void setOperatorName(String operatorName);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy