Example usage for org.springframework.data.mongodb.repository.query MongoQueryMethod getAnnotatedQuery

List of usage examples for org.springframework.data.mongodb.repository.query MongoQueryMethod getAnnotatedQuery

Introduction

In this page you can find the example usage for org.springframework.data.mongodb.repository.query MongoQueryMethod getAnnotatedQuery.

Prototype

@Nullable
String getAnnotatedQuery() 

Source Link

Document

Returns the query string declared in a Query annotation or null if neither the annotation found nor the attribute was specified.

Usage

From source file:org.springframework.data.mongodb.repository.query.StringBasedMongoQuery.java

public StringBasedMongoQuery(MongoQueryMethod method, MongoOperations mongoOperations) {
    this(method.getAnnotatedQuery(), method, mongoOperations);
}