club.chlab.mybatis.annotations.Column Maven / Gradle / Ivy
package club.chlab.mybatis.annotations;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* column annotation
* @author jch
*
*/
@Target({METHOD, FIELD})
@Retention(RUNTIME)
public @interface Column {
String name() default "";
boolean primary() default false;
String primarysql() default "";
boolean unique() default false;
boolean nullable() default true;
boolean insertable() default true;
boolean updatable() default true;
String table() default "";
int length() default 255;
int precision() default 0;
int scale() default 0;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy