title: java.lang.IllegalArgumentException:Either use @Param on all parameters except Pageable and Sort typed once, or none at all
body: <p>I'm using Spring Data Cassandra.I'm getting exception when i pass multiple parameters to the repository method.
     Can anyone help how to pass multiple parameters to append and use where clause.</p>
  
  <p>My Repo method:</p>
  
  <pre><code>@Query("select site_name,month_gen from mykeyspace.dgr_item where type='Site' and name = ?0 and dgr_date in (:list)")
  public List&lt;Object&gt; findGen(String siteName, @Param("list") List&lt;Date&gt; listt);
  </code></pre>
  
  <p>Exception:</p>
  
  <pre><code>Caused by: java.lang.IllegalArgumentException: Either use @Param on all parameters except Pageable and Sort typed once, or none at all!
  at org.springframework.util.Assert.isTrue(Assert.java:68)
  at org.springframework.data.repository.query.Parameters.assertEitherAllParamAnnotatedOrNone(Parameters.java:294)
  at org.springframework.data.repository.query.Parameters.&lt;init&gt;(Parameters.java:91)
  at org.springframework.data.cassandra.repository.query.CassandraParameters.&lt;init&gt;(CassandraParameters.java:45)
  at org.springframework.data.cassandra.repository.query.CassandraQueryMethod.createParameters(CassandraQueryMethod.java:131)
  at org.springframework.data.cassandra.repository.query.CassandraQueryMethod.createParameters(CassandraQueryMethod.java:45)
  at org.springframework.data.repository.query.QueryMethod.&lt;init&gt;(QueryMethod.java:75)
  at org.springframework.data.cassandra.repository.query.CassandraQueryMethod.&lt;init&gt;(CassandraQueryMethod.java:64)
  at org.springframework.data.cassandra.repository.support.CassandraRepositoryFactory$CassandraQueryLookupStrategy.resolveQuery(CassandraRepositoryFactory.java:152)
  at org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.&lt;init&gt;(RepositoryFactorySupport.java:436)
  at org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:221)
  at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.initAndReturn(RepositoryFactoryBeanSupport.java:277)
  at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:263)
  at org.springframework.data.cassandra.repository.support.CassandraRepositoryFactoryBean.afterPropertiesSet(CassandraRepositoryFactoryBean.java:76)
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)
  ... 41 common frames omitted
  </code></pre>