Пример #1
0
 @Override
 public Page<Railway> findAll(Pageable paging) {
   return repo.findAll(paging);
 }
Пример #2
0
 @Override
 public Railway findBySlug(String slug) {
   return repo.findBySlug(slug);
 }
Пример #3
0
 @Override
 public void remove(Railway railway) {
   repo.delete(railway);
 }
Пример #4
0
 @Override
 public void save(Railway railway) {
   repo.save(railway);
 }
Пример #5
0
 @Override
 public Iterable<Railway> findByCountry(String country) {
   return repo.findByCountryOrderByNameAsc(country);
 }
Пример #6
0
 @Override
 public Railway findByName(String name) {
   return repo.findByName(name);
 }
Пример #7
0
 @Override
 public Railway findById(ObjectId id) {
   return repo.findOne(id);
 }