@@ -0,0 +1,774 @@
+package pl.openrest.filters.query.annotation;%0A%0Aimport java.lang.annotation.ElementType;%0Aimport java.lang.annotation.Retention;%0Aimport java.lang.annotation.RetentionPolicy;%0Aimport java.lang.annotation.Target;%0A%0A/**%0A * Annotation to mark predicate method as static filter. Returned predicate%0A * will be added to every query for entity.%0A * %0A * @author Szymon Konicki%0A *%0A */%0A@Retention(RetentionPolicy.RUNTIME)%0A@Target(ElementType.METHOD)%0Apublic @interface StaticFilter %7B%0A%0A%09/**%0A%09 * SpEL String that has to evaluate to boolean. If true static filter won't%0A%09 * be added to query.%0A%09 * %0A%09 */%0A%09String offOnCondition() default %22%22;%0A%0A%09/**%0A%09 * Array of SpEl Strings that after evaluation will be passed to expression%0A%09 * method as its parameters%0A%09 */%0A%09String%5B%5D parameters() default %7B%7D;%0A%7D%0A

Add StaticFilter annotation to mark predicates added to every request