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

io.github.jinghui70.rainbow.dbaccess.annotation.Column Maven / Gradle / Ivy

There is a newer version: 5.2.11
Show newest version
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 mapper() default FieldMapper.class;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy