I have custom long sql queries strings in my JPA repository interface.I feel move this queries to some properties files because when i want execute queries against my DB i have to do remove all '+' plus sign and double quote's. Instead of remove that better put all queries into properties or yaml files. I can easy to use and modify.Please suggest me this way is a correct approach.
@Repository
public interface LoanRepository extends JpaRepository<Loan, Integer> {
@(name= "{long query}")
public List<Loan> findLoansByIdAndBalance();
}