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

net.paoding.rose.jade.annotation.ShardBy 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;

/**
 * 对于sql中没有含有散表参数的或散表参数名称和配置的散表名称不一致的,通过将 ShardBy 配置在这个参数上,表示使用该参数进行散表.
 * 

* ®SQL("....where name like :1")
* public List find(String likeValue, ®ShardBy String pageId); * *

 * 
* * @author 王志亮 [[email protected]] */ @Target({ ElementType.PARAMETER }) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface ShardBy { /** * bean参数情况下的属性名 * * @return */ String value() default ""; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy