Annotation Interface ExistsQuery
@Retention(RUNTIME)
@Target({METHOD,ANNOTATION_TYPE})
@Documented
@Query(exists=true)
public @interface ExistsQuery
Annotation to declare finder exists queries directly on repository methods. Both attributes allow using a placeholder
notation of
?0
, ?1
and so on.- Since:
- 1.10
- Author:
- Mark Paluch
-
Optional Element Summary
-
Element Details
-
value
Takes a MongoDB JSON string to define the actual query to be executed. This one will take precedence over the method name then. Alias forQuery.value()
.- Returns:
- empty
String
by default.
- Default:
- ""
-