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

win.doyto.query.entity.CommonEntity Maven / Gradle / Ivy

There is a newer version: 0.2.2.1-RELEASE
Show newest version
package win.doyto.query.entity;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 * CommonEntity
 *
 * @author f0rb
 */
@Getter
@Setter
@MappedSuperclass
public abstract class CommonEntity
    implements Persistable, Serializable, CreateUserAware, UpdateUserAware {

    @Id
    @GeneratedValue
    protected I id;

    /**
     * 创建者
     */
    private U createUserId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新者
     */
    private U updateUserId;

    /**
     * 更新时间
     */
    private Date updateTime;

}