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

net.paoding.rose.jade.annotation.UseMaster Maven / Gradle / Ivy

package net.paoding.rose.jade.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 使用:{#link UseMaster} 标注需要强制查询 master 数据库的 DAO 接口方法。
 * 
 * @author han.liao
 */
@Target({ ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface UseMaster {

    /**
     * 是否需要强制查询 master 数据库。
     * 
     * @return 强制查询 master 数据库
     */
    boolean value() default true;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy