Sweet! 1) When implementing a repository and a cus...
# spring
y
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 {

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

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