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

com.zys.mybatis.dto.base.BaseEntity Maven / Gradle / Ivy

package com.zys.mybatis.dto.base;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.zys.mybatis.annotation.Default;
import com.zys.mybatis.annotation.FillEnum;
import com.zys.mybatis.converter.impl.LocalDateTimeDVImpl;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author zys
 * @version 1.0
 * @date 2021/3/25 9:10
 */
@Setter
@Getter
public class BaseEntity implements Serializable {

    @Default(fill = FillEnum.INSERT,defaultValue = LocalDateTimeDVImpl.class)
    @JsonIgnore
    private LocalDateTime createTime;

    @Default(fill = FillEnum.INSERT_UPDATE,defaultValue = LocalDateTimeDVImpl.class)
    @JsonIgnore
    private LocalDateTime updateTime;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy