package garbagetown.domain.service.tourinfo;

import garbagetown.domain.model.Tourinfo;
import garbagetown.domain.repository.TourinfoCriteria;
import garbagetown.domain.repository.TourinfoRepository;
import garbagetown.domain.service.tourinfo.TourinfoService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import javax.inject.Inject;
import javax.transaction.Transactional;

/**
 * Created by garbagetown on 10/15/15.
 */
@Service
@Transactional
public class TourinfoServiceImpl implements TourinfoService {

    @Inject
    TourinfoRepository repository;

    @Override
    public Page<Tourinfo> search(TourinfoCriteria criteria, Pageable pageable) {
        return repository.findPageBySearchCriteria(criteria, pageable);
    }
}

@@ -197,68 +197,8 @@
 ry;%0A
-import garbagetown.domain.service.tourinfo.TourinfoService;%0A
 impo
@@ -573,17 +573,25 @@
 ository 
-r
+tourinfoR
 epositor
@@ -704,17 +704,25 @@
  return 
-r
+tourinfoR
 epositor

refactor a field name