Prefer Slice over Page in RepositoryItemReader

Resolves #4115
This commit is contained in:
Henning Poettker
2023-02-09 22:25:38 +01:00
committed by Mahmoud Ben Hassine
parent 4f1dc94b07
commit 523386e674
4 changed files with 20 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2013-2022 the original author or authors.
* Copyright 2013-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -18,12 +18,12 @@ package org.springframework.batch.sample.data;
import java.math.BigDecimal;
import org.springframework.batch.sample.domain.trade.CustomerCredit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Slice;
import org.springframework.data.repository.PagingAndSortingRepository;
public interface CustomerCreditPagingAndSortingRepository extends PagingAndSortingRepository<CustomerCredit, Long> {
Page<CustomerCredit> findByCreditGreaterThan(BigDecimal credit, Pageable request);
Slice<CustomerCredit> findByCreditGreaterThan(BigDecimal credit, Pageable request);
}