title: How to store @Query sql in external file for CrudRepository?
body: <p>I'm using <code>spring</code> with <code>CrudRepository</code>s for database connection.</p>
  
  <p>Now I require a quite long (several lines) sql query that I'd prefer to maintain in a file in classpath, rather than directly inside the code.</p>
  
  <p>But how could I achieve this?
  My repo looks as follows:</p>
  
  <pre><code>@Query(value = "&lt;my very long sql query&gt;", nativeQuery = true) //how to inject file content?
  @Modifying
  @Transactional
  public void executeSpecificSql();
  </code></pre>