Revision 51140
Added by Claudio Atzori about 6 years ago
FunderDao.java | ||
---|---|---|
25 | 25 |
} |
26 | 26 |
|
27 | 27 |
public List<FunderDetails> listFunderDetails(final int page, final int size) throws FundersApiException { |
28 |
return funderRepository.findAll(new PageRequest(page, size))
|
|
28 |
return funderRepository.findAll(PageRequest.of(page, size))
|
|
29 | 29 |
.getContent() |
30 | 30 |
.stream() |
31 | 31 |
.map(ConversionUtils::asFunderDetails) |
... | ... | |
33 | 33 |
} |
34 | 34 |
|
35 | 35 |
public List<String> listFunderIds(final int page, final int size) throws FundersApiException { |
36 |
return funderRepository.findAll(new PageRequest(page, size))
|
|
36 |
return funderRepository.findAll(PageRequest.of(page, size))
|
|
37 | 37 |
.getContent() |
38 | 38 |
.stream() |
39 | 39 |
.map(f -> f.getId()) |
Also available in: Unified diff
updated to spring boot 2.0.0