Skip to content

Commit

Permalink
Use correct ScrollPosition factory methods in reference docs.
Browse files Browse the repository at this point in the history
Closes #2963
  • Loading branch information
quaff authored Oct 23, 2023
1 parent 81841f3 commit 5dbd956
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion src/main/asciidoc/repositories-scrolling.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
====
Expand Down

0 comments on commit 5dbd956

Please sign in to comment.