2020-06-17 17:54:21 +07:00
|
|
|
package com.cubetiqs.demo.service;
|
|
|
|
|
|
|
|
import com.cubetiqs.demo.repository.BaseRepository;
|
2020-06-17 20:22:26 +07:00
|
|
|
import org.springframework.data.domain.Page;
|
|
|
|
import org.springframework.data.domain.Pageable;
|
2020-06-17 17:54:21 +07:00
|
|
|
import org.springframework.data.repository.NoRepositoryBean;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
@NoRepositoryBean
|
|
|
|
public interface BaseService<T, ID extends Serializable> {
|
|
|
|
BaseRepository<T, ID> getRepository();
|
2020-06-17 20:22:26 +07:00
|
|
|
Page<T> findAll(Pageable pageable, String q);
|
|
|
|
Page<T> findAll(Pageable pageable);
|
2020-06-17 17:54:21 +07:00
|
|
|
List<T> findAll();
|
|
|
|
}
|