title: java spring named query and property file
body: <p>How to use named query. For example:</p>
  
  <pre><code>public interface A extends Base&lt;SomeClass, Long&gt; {
     @Query(value = "SELECT SUM(d.IS_OPEN) VW_VIEW d where d.value=?1", nativeQuery = true)
     SomeClass getValue(Long value);
  }
  </code></pre>
  
  <p>How can I save SQL query into some properties file (not XML, not in Java class) and send name as parameter?</p>