| 1234567891011121314151617181920212223242526 |
- package com.es.demo.back;
- import org.springframework.data.domain.Page;
- import org.springframework.data.domain.Pageable;
- import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
- import org.springframework.data.rest.core.annotation.RepositoryRestResource;
- import java.util.Optional;
- /**
- * @ClassName TQRepository
- * @PackageName com.es.demo.back
- * @Author sheen
- * @Date 2019/12/15
- * @Version 1.0
- * @Description //TODO
- **/
- @RepositoryRestResource(path = "tq")
- public interface TQRepository extends ElasticsearchRepository<ChoiceQuestion,Integer> {
- Page<ChoiceQuestion> findAll(Pageable pageable);
- Page<ChoiceQuestion> findAllByIdBetween( Pageable pageable,Integer start, Integer end);
- Page<ChoiceQuestion> findByStemLike(String content,Pageable pageable);
- int countAllByIdBetween(Integer id, Integer id2);
- void deleteById(Integer integer);
- Optional<ChoiceQuestion> findById(Integer integer);
- }
|