From ec9dcd30c54cf87398e9727581ae7fe6f7e0bde5 Mon Sep 17 00:00:00 2001 From: Yanming Zhou Date: Mon, 23 Oct 2023 10:28:28 +0800 Subject: [PATCH] Polishing documents Fix https://github.com/spring-projects/spring-data-jpa/issues/3204 --- src/main/antora/modules/ROOT/pages/repositories/scrolling.adoc | 2 +- src/main/asciidoc/repositories-scrolling.adoc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/antora/modules/ROOT/pages/repositories/scrolling.adoc b/src/main/antora/modules/ROOT/pages/repositories/scrolling.adoc index 513c6bf79c..eeb4317dc1 100644 --- a/src/main/antora/modules/ROOT/pages/repositories/scrolling.adoc +++ b/src/main/antora/modules/ROOT/pages/repositories/scrolling.adoc @@ -90,7 +90,7 @@ interface UserRepository extends Repository { } WindowIterator 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. diff --git a/src/main/asciidoc/repositories-scrolling.adoc b/src/main/asciidoc/repositories-scrolling.adoc index aea84f2ac9..bca294ffe2 100644 --- a/src/main/asciidoc/repositories-scrolling.adoc +++ b/src/main/asciidoc/repositories-scrolling.adoc @@ -91,7 +91,7 @@ interface UserRepository extends Repository { } WindowIterator 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. ====