title: Spring data jpa, externalizing native queries
body: <p>I am using Spring data jpa for executing native Query, here is the example. </p>
  
  <pre><code>@Query(value = "select name from customer", nativeQuery = true) 
  public List&lt;String&gt; findNameNative() ;
  </code></pre>
  
  <p>Now, due to company constraint can't put the entire query here, but query is pretty huge, like 100 lines.</p>
  
  <p>N we have many such queries. </p>
  
  <p>Is there a way i can define queries in a separate file like xml or properties file and refer them here. (to keep the code clean)</p>
  
  <p>Appericiate the help. </p>
  
  <p>Thanks. </p>