title: Not found in annotated query error with @Query
body: <p>I am using spring data with REST. I have a table country and an Entity corresponding to it called Country.java</p>
  
  <p>I have annotated my method in CountryRepositopry as</p>
  
  <pre><code>public interface CountryRepository extends Repository&lt;Country, Short&gt; {
  
      @RestResource(path = "bycode3")
          @Query("select c from Country c where c.codeAlpha3=?1 and c.active=1")
          Country findCountryByCodeAlpha3(@Param("code") String countryCode);
   }
  </code></pre>
  
  <p>I am getting following exception while starting tomcat-</p>
  
  <pre><code>Caused by: java.lang.IllegalStateException: Using named parameters for method public abstract com.persistence.entity.common.Country com.persistence.repository.CountryRepository.findCountryByCodeAlpha3(java.lang.String) but parameter 'code' not found in annotated query 'select c from Country c where c.codeAlpha3=?1 and c.active=1'!
  </code></pre>