Search in sources :

Example 1 with CountiesDTO

use of gov.ca.cwds.cals.service.dto.CountiesDTO in project cals-api by ca-cwds.

the class CountiesService method find.

@Override
public Response find(Serializable serializable) {
    final CountiesDTO countiesDTO = new CountiesDTO();
    List<County> counties = countiesDao.findAll();
    counties.forEach((County county) -> countiesDTO.getCounties().add(countyMapper.toCountyDTO(county)));
    return countiesDTO;
}
Also used : CountiesDTO(gov.ca.cwds.cals.service.dto.CountiesDTO) County(gov.ca.cwds.data.legacy.cms.entity.syscodes.County)

Aggregations

CountiesDTO (gov.ca.cwds.cals.service.dto.CountiesDTO)1 County (gov.ca.cwds.data.legacy.cms.entity.syscodes.County)1