org.sagacity.sqltoy.solon.annotation.Db Maven / Gradle / Ivy
package org.sagacity.sqltoy.solon.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;
/**
* 数据工厂注解
*
* 例:
* @Db SqlToyLazyDao dao;
* @Db SqlToyCRUDService crudService;
* @Db XXMapper mapper;
* @Db("db1") SqlToyLazyDao dao; //指定数据源
* */
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Db {
/**
* ds name
* */
String value() default "";
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy