# spring


11/28/2016, 9:25 PM
Sweet! 1) When implementing a repository and a custom query method, it would be nice if we could leverage default methods on interfaces instead of having to do this:
Copy code
public interface AccountRepository 
    extends JpaRepository<Account, Long>, AccountRepositoryCustom { ... }

public interface AccountRepositoryCustom {
    public void customMethod();

public class AccountRepositoryImpl implements AccountRepositoryCustom {

    AccountRepository accountRepository;  /* Optional - if you need it */

    public void customMethod() { ... }
Our team adds extension methods onto the repository which seem to function equally well.