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

me.wuwenbin.tools.sqlgen.annotation.SQLColumn Maven / Gradle / Ivy

There is a newer version: 1.2.0.RELEASE
Show newest version
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