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

com.kasinf.framework.rest.annotation.SearchableDefaults Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.kasinf.framework.rest.annotation;

import java.lang.annotation.*;

/**
 * 

先从参数找,参数找不到从方法上找,否则使用默认的查询参数

*
 *     格式如下:
 *     value = {"baseInfo.age_lt=123", "name_like=abc", "id_in=1,2,3,4"}
 * 
* * @author Zhang Kaitao */ @Target({ElementType.METHOD, ElementType.PARAMETER}) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface SearchableDefaults { /** * 默认查询参数字符串 * @return String[] */ String[] value() default {}; /** * 是否合并默认的与自定义的 * @return boolean */ boolean merge() default false; /** * 是否需要分页 * @return boolean */ boolean needPage() default true; /** * 是否需要排序 * @return boolean */ boolean needSort() default true; /** * 默认的projection * @return Class */ Class projection() default void.class; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy