class CategoryServiceImpl extends BaseTransactionalService implements CategoryService {

    @Override
    @Cacheable(cacheNames="getInnovationSectors", key = "#root.methodName", unless = "#result.isFailure()")
    public ServiceResult<List<InnovationSectorResource>> getInnovationSectors() {
        return find(innovationSectorRepository.findAllByOrderByPriorityAsc(), notFoundError(InnovationSector.class))
                .andOnSuccessReturn(innovationSectorMapper::mapToResource);
    }

}