|
Spring Data Document | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=METHOD) @Documented public @interface Query
Annotation to declare finder queries directly on repository methods. Both attributes allow using a placeholder
notation of ?0, ?1 and so on.
| Optional Element Summary | |
|---|---|
String |
fields
Defines the fields that should be returned for the given query. |
String |
value
Takes a MongoDB JSON string to define the actual query to be executed. |
public abstract String value
public abstract String fields
|
Spring Data Document | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||