class CategoryServiceImpl extends BaseTransactionalService implements CategoryService {

    @Override
    @Cacheable(cacheNames="getInnovationAreas", key = "#root.methodName", unless = "#result.isFailure()")
    public ServiceResult<List<InnovationAreaResource>> getInnovationAreas() {
        return find(innovationAreaRepository.findAllByOrderByNameAsc(), notFoundError(InnovationArea.class))
                .andOnSuccessReturn(innovationAreaMapper::mapToResource);
    }

}