From cb1dfaf3bd97b727bd7a5c0ace36b8bf88171ebb Mon Sep 17 00:00:00 2001 From: Dmitry Sulman Date: Sat, 29 Mar 2025 21:48:15 +0300 Subject: [PATCH] Fix Antora feature-scroll attribute Signed-off-by: Dmitry Sulman --- src/main/antora/modules/ROOT/pages/index.adoc | 1 - .../modules/ROOT/pages/repositories/core-concepts.adoc | 1 + .../ROOT/pages/repositories/query-methods-details.adoc | 5 ++--- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/antora/modules/ROOT/pages/index.adoc b/src/main/antora/modules/ROOT/pages/index.adoc index 1427c06d2f..79a84663db 100644 --- a/src/main/antora/modules/ROOT/pages/index.adoc +++ b/src/main/antora/modules/ROOT/pages/index.adoc @@ -3,7 +3,6 @@ Oliver Gierke; Thomas Darimont; Christoph Strobl; Mark Pollack; Thomas Risberg; Mark Paluch; Jay Bryant :revnumber: {version} :revdate: {localdate} -:feature-scroll: true (C) 2008-2025 The original authors. diff --git a/src/main/antora/modules/ROOT/pages/repositories/core-concepts.adoc b/src/main/antora/modules/ROOT/pages/repositories/core-concepts.adoc index 1f77b5ee0e..dfca832851 100644 --- a/src/main/antora/modules/ROOT/pages/repositories/core-concepts.adoc +++ b/src/main/antora/modules/ROOT/pages/repositories/core-concepts.adoc @@ -1,5 +1,6 @@ [[repositories.core-concepts]] = Core concepts +:feature-scroll: The central interface in the Spring Data repository abstraction is `Repository`. It takes the domain class to manage as well as the identifier type of the domain class as type arguments. diff --git a/src/main/antora/modules/ROOT/pages/repositories/query-methods-details.adoc b/src/main/antora/modules/ROOT/pages/repositories/query-methods-details.adoc index 17042746bb..aae48acb62 100644 --- a/src/main/antora/modules/ROOT/pages/repositories/query-methods-details.adoc +++ b/src/main/antora/modules/ROOT/pages/repositories/query-methods-details.adoc @@ -1,5 +1,6 @@ [[repositories.query-methods.details]] = Defining Query Methods +:feature-scroll: The repository proxy has two ways to derive a store-specific query from the method name: @@ -457,10 +458,10 @@ ifdef::feature-scroll[] | `limit + 1` at `OffsetScrollPosition.getOffset()` | One to many queries fetching data starting at `OffsetScrollPosition.getOffset()` applying limiting. a| A `Window` can only navigate to the next `Window`. -endif::[] * `Window` provides details whether there is more data to fetch. * Offset-based queries becomes inefficient when the offset is too large because the database still has to materialize the full result. +endif::[] | `Page` | `Pageable.getPageSize()` at `Pageable.getOffset()` @@ -518,8 +519,6 @@ QSort sort = QSort.by(QPerson.firstname.asc()) .and(QSort.by(QPerson.lastname.desc())); ---- -ifdef::feature-scroll[] -endif::[] [[repositories.limit-query-result]] === Limiting Query Results