package com.ecep.contract.service; import com.ecep.contract.model.Company; import com.ecep.contract.model.CompanyOldName; import com.ecep.contract.vm.CompanyOldNameViewModel; import org.springframework.data.domain.Pageable; import org.springframework.stereotype.Service; import java.time.LocalDate; import java.util.HashMap; import java.util.List; @Service public class CompanyOldNameService extends QueryService { public boolean makePathAbsent(CompanyOldName companyOldName) { // TODO Auto-generated method stub throw new UnsupportedOperationException("Unimplemented method 'makePathAbsent'"); } public CompanyOldName findMatchByDate(Company company, LocalDate localDate) { // TODO Auto-generated method stub throw new UnsupportedOperationException("Unimplemented method 'findMatchByDate'"); } public List findAllByCompanyAndName(Company company, String oldName) { // TODO Auto-generated method stub throw new UnsupportedOperationException("Unimplemented method 'findAllByCompanyAndName'"); } public List findAllByCompany(Company company) { HashMap params = new HashMap<>(); params.put("company", company.getId()); return findAll(params, Pageable.unpaged()).getContent(); } }