title: How to pass to @Query a complete query String?
body: <p>Using the @Query from org.springframework.data.cassandra.repository.Query, I would like to make a custom query and pass it to my Repository and then from the parameter to the @Query annotation. </p>
  
  <p>My Repository looks like that: </p>
  
  <pre><code>@Repository
  public interface TestRepository extends CassandraRepository&lt;TestValues, id&gt; {
  
      @Query(value = ":customQuery")
      public List&lt;TestValues&gt; testSearch(@Param("customQuery") String customQuery);
  
  
  }
  </code></pre>
  
  <p>Where the String customQuery is the query self. Like " SELECT * FROM TABLE_A WHERE COLUMN_B = C"</p>
  
  <p>I get the following error: </p>
  
  <pre><code>ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.data.cassandra.CassandraQuerySyntaxException: Query; CQL [{{customQuery}}]; line 1:0 no viable alternative at input '{' ([{]...); nested exception is com.datastax.driver.core.exceptions.SyntaxError: line 1:0 no viable alternative at input '{' ([{]...)] with root cause
  com.datastax.driver.core.exceptions.SyntaxError: line 1:0 no viable alternative at input '{' ([{]...)
  </code></pre>
  
  <p>My guess is that the customQuery is a String with quotation marks " ". But I dont know how to pass the whole query like that. Could anyone please help me? :) </p>