com.huoguo.mybatisplus.batch.annotation.TableDate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mybatis-plus-batch Show documentation
Show all versions of mybatis-plus-batch Show documentation
This is Mybatis Plus based batch write operation tool
package com.huoguo.mybatisplus.batch.annotation;
import com.huoguo.mybatisplus.batch.enums.DateType;
import java.lang.annotation.*;
/**
* 数据库日期类型字段注解
* @author Lizhenghuang
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.ANNOTATION_TYPE})
public @interface TableDate {
/**
* 注解默认值
* @return 列名字符串
*/
String value() default "";
/**
* 注解默认值
* @return 数据类型
*/
DateType type() default DateType.INPUT;
}