title: How to refer long query, written in external file, in Spring data jpa @Query
body: <ul>
  <li>I want to write query (properties or yaml) in external file to load database. -</li>
  <li>This is long query and does not look good to eye when placed inside @Query("long query") in XXXRepository class. </li>
  <li>Is there way to write this query in an external file (properties, yaml, xml or json) and call that file in @Query() in spring data jpa?</li>
  </ul>