java.lang.Object
org.springframework.data.couchbase.core.query.Query
org.springframework.data.couchbase.core.query.StringQuery

public class StringQuery extends Query
Query created from the string in @Query annotation in the repository interface.
 @Query("#{#n1ql.selectEntity} where #{#n1ql.filter} and firstname = $1 and lastname = $2")
 List<User> getByFirstnameAndLastname(String firstname, String lastname);
 
It must include the SELECT ... FROM ... preferably via the #n1ql expression, in addition to any predicates required, including the n1ql.filter (for _class = className)
Author:
Michael Reiche