com.kasinf.framework.rest.annotation.SearchableQuery Maven / Gradle / Ivy
package com.kasinf.framework.rest.annotation;
import com.kasinf.framework.rest.repository.callback.SearchCallback;
import java.lang.annotation.*;
/**
* 覆盖默认的根据条件查询数据
*
* @author 凯鸿
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface SearchableQuery {
/**
* 覆盖默认的查询所有ql
* @return String
*/
String findAllQuery() default "";
/**
* 覆盖默认的统计所有ql
* @return String
*/
String countAllQuery() default "";
/**
* 给ql拼条件及赋值的回调类型
*
* @return com.vsoinf.core.curd.callback.SearchCallback子类
*/
Class extends SearchCallback> callbackClass() default SearchCallback.class;
/**
* 设置连接信息
* @return {@link QueryJoin}
*/
QueryJoin[] joins() default {};
}