com.itcoon.common.jpa.base.AuditIdPO Maven / Gradle / Ivy
package com.itcoon.common.jpa.base;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.LastModifiedBy;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import javax.persistence.EntityListeners;
import javax.persistence.MappedSuperclass;
/**
* @author Miaoxia Yu
* @date 2020-11-19
*/
@MappedSuperclass
@EntityListeners(AuditingEntityListener.class)
public abstract class AuditIdPO extends TrackableIdPO {
private static final long serialVersionUID = 6144978530850737951L;
@CreatedBy
private BaseUserPO creater;
@LastModifiedBy
private BaseUserPO modifier;
public BaseUserPO getCreater() {
return creater;
}
public void setCreater(BaseUserPO creater) {
this.creater = creater;
}
public BaseUserPO getModifier() {
return modifier;
}
public void setModifier(BaseUserPO modifier) {
this.modifier = modifier;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy