io.github.jinghui70.rainbow.dbaccess.annotation.Column Maven / Gradle / Ivy
package io.github.jinghui70.rainbow.dbaccess.annotation;
import io.github.jinghui70.rainbow.dbaccess.fieldmapper.FieldMapper;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Column {
/**
* 字段名字,默认为"",就是把属性名转为kebab-case
*
* @return 字段名
*/
String name() default "";
LobType lobType() default LobType.NONE;
Class extends FieldMapper> mapper() default FieldMapper.class;
}