title: How to add QueryHints on Default Spring Data JPA Methods?
body: <p>I am able to use Query Cache with Spring Data JPA for my custom query methods like below.</p>
  
  <pre><code>public interface CountryRepository extends JpaRepository&lt;Country, String&gt; {
  @QueryHints({ @QueryHint(name = "org.hibernate.cacheable", value ="true") })
  Country findByCountryName(String countryName);
  @QueryHints({ @QueryHint(name = "org.hibernate.cacheable", value ="true") })
  Country findByCountryCode(String countryCode); }
  </code></pre>
  
  <p>However, how to add @QueryHints on existing parent methods like findAll()?</p>
  
  <p>Thanks.</p>