1
|
package eu.dnetlib.organizations.repository.readonly;
|
2
|
|
3
|
import java.util.Optional;
|
4
|
|
5
|
import org.springframework.data.domain.Page;
|
6
|
import org.springframework.data.domain.Pageable;
|
7
|
import org.springframework.data.repository.NoRepositoryBean;
|
8
|
import org.springframework.data.repository.Repository;
|
9
|
|
10
|
@NoRepositoryBean
|
11
|
public interface ReadOnlyRepository<T, ID> extends Repository<T, ID> {
|
12
|
|
13
|
Optional<T> findById(ID id);
|
14
|
|
15
|
boolean existsById(ID id);
|
16
|
|
17
|
Page<T> findAll(Pageable pageable);
|
18
|
|
19
|
Iterable<T> findAll();
|
20
|
|
21
|
long count();
|
22
|
}
|