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

com.healthy.common.mybatis.entity.BaseEntity Maven / Gradle / Ivy

There is a newer version: 2.0.0-M1
Show newest version
package com.healthy.common.mybatis.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

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

/**
 * 实体类基类
 *
 * @author xm.z
 */
@Getter
@Setter
public abstract class BaseEntity implements Serializable {

	/**
	 * 创建时间
	 */
	@Schema(title = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	/**
	 * 更新时间
	 */
	@Schema(title = "更新时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private LocalDateTime updateTime;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy