com.huoguo.batch.annotation.BatchFill Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simple-batch Show documentation
Show all versions of simple-batch Show documentation
This is simple based batch write operation tool
The newest version!
package com.huoguo.batch.annotation;
import java.lang.annotation.*;
/**
* 自动填充注解
*
* @author Lizhenghuang
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.ANNOTATION_TYPE})
public @interface BatchFill {
/**
* 字段名字符串
*
* @return 字段名字符串
*/
@Deprecated
String value() default "";
/**
* 新增时是否填充该字段
*
* @return 默认不填充
*/
boolean insert() default false;
/**
* 修改时是否填充该字段
*
* @return 默认不填充
*/
boolean update() default false;
}