All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.itcoon.common.jpa.base.AuditIdPO Maven / Gradle / Ivy

There is a newer version: 1.1.2.RELEASE
Show newest version
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