com.huoguo.mybatisplus.batch.annotation.TableId 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.IdType;
import java.lang.annotation.*;
/**
* 数据库主键字段注解
* @author Lizhenghuang
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.ANNOTATION_TYPE})
public @interface TableId {
/**
* 注解默认值
* @return 列名字符串
*/
String value() default "";
/**
* 注解默认值
* @return 字段烈性
*/
IdType type() default IdType.INPUT;
}