- I want to write query (properties or yaml) in external file to load database. -
- This is long query and does not look good to eye when placed inside @Query("long query") in XXXRepository class.
- 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?