me.wuwenbin.tools.sqlgen.annotation.SQLColumn Maven / Gradle / Ivy
package me.wuwenbin.tools.sqlgen.annotation;
import java.lang.annotation.*;
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface SQLColumn {
/**
* whether is primary key,default is false
*
* @return {@link Boolean}
*/
boolean pk() default false;
/**
* the name of column
*
* @return {@link String}
*/
String value() default "";
/**
* conditions of sql router,default is minimal
*
* @return {@link Integer[]}
*/
int[] routers() default Integer.MIN_VALUE;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy