com.diboot.core.entity.BaseModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of diboot-core Show documentation
Show all versions of diboot-core Show documentation
diboot core extend by begcode
package com.diboot.core.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import java.time.LocalDateTime;
/**
* 动态实体模型
* @author [email protected]
* @version v3.0
* @date 2023/5/25
*/
@Getter
@Setter
@Accessors(chain = true)
public class BaseModel extends BaseEntity {
private static final long serialVersionUID = 10204L;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
/**
* 创建人
*/
@TableField(fill = FieldFill.INSERT, insertStrategy = FieldStrategy.NOT_EMPTY)
private String createBy;
/**
* 更新人
*/
@TableField(fill = FieldFill.UPDATE)
private String updateBy;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy