title: Spring boot repository for read-only data: @Query annotation type not applicable to this kind of declaration
body: <p>I'm trying to create a basic repository so I can get my region's time zones as supported by Postgres.  I'm getting the error "annotation type not applicable to this kind of declaration."
  How should I approach this?  Why am I not allowed to define a query here?</p>
  
  <pre><code>import com.me.model.PgTz;
  import org.springframework.data.jpa.repository.Query;
  import org.springframework.stereotype.Repository;
  @Repository
  public interface TzRepository extends org.springframework.data.repository.Repository&lt;PgTz,String&gt;
  {
      @Query("SELECT tz FROM PgTz tz WHERE tz.name STARTSWITH 'US/' OR tz.name STARTSWITH 'America/'");
      Iterable&lt;PgTz&gt; findPgTzByName(); 
  }
  </code></pre>