@Override public List<IncomeItem> findByOwnerAndBetweenIncomeDate(User user, Date startDate, Date endDate) { if (startDate == null || endDate == null) { return repo.findByOwner(user); } return repo.findByOwnerAndBetweenIncomeDate(user, startDate, endDate); }