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

org.sagacity.sqltoy.solon.annotation.Db Maven / Gradle / Ivy

There is a newer version: 5.6.23.RC3.jre8
Show newest version
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