Use correct ScrollPosition factory methods in reference docs.

Closes #2963
This commit is contained in:
Yanming Zhou
2023-10-23 15:15:33 +08:00
committed by GitHub
parent 81841f34fd
commit 5dbd956a28
2 changed files with 2 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ interface UserRepository extends Repository<User, Long> {
}
WindowIterator<User> users = WindowIterator.of(position -> repository.findFirst10ByLastnameOrderByFirstname("Doe", position))
.startingAt(KeysetScrollPosition.initial()); <1>
.startingAt(ScrollPosition.keyset()); <1>
----
<1> Start at the very beginning and do not apply additional filtering.

View File

@@ -91,7 +91,7 @@ interface UserRepository extends Repository<User, Long> {
}
WindowIterator<User> users = WindowIterator.of(position -> repository.findFirst10ByLastnameOrderByFirstname("Doe", position))
.startingAt(KeysetScrollPosition.initial()); <1>
.startingAt(ScrollPosition.keyset()); <1>
----
<1> Start at the very beginning and do not apply additional filtering.
====