Custom repository searches often need SQL. A derived query method lets Spring Data infer a query from the method name, avoiding handwritten SQL for simple searches. section 14.3
Listing 14.5 Adding a repository operation to get all the accounts with a specified name
public interface AccountRepository
extends CrudRepository<Account, Long> {
List<Account> findAccountsByName(String name);
}See how `findAccountsByName` declares an account-name lookup in the repository interface. section 14.3
Reading the method name
`find` signals a SELECT; `ByName` supplies the condition `WHERE name = ?`. Because the method is in `AccountRepository`, `findByName` can also work. Explicit SQL with `@Query` is presented as the preferred alternative. section 14.3

