File tree 3 files changed +3
-4
lines changed
src/main/antora/modules/ROOT/pages
3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 3
3
Oliver Gierke; Thomas Darimont; Christoph Strobl; Mark Pollack; Thomas Risberg; Mark Paluch; Jay Bryant
4
4
:revnumber: {version}
5
5
:revdate: {localdate}
6
- :feature-scroll: true
7
6
8
7
(C) 2008-2025 The original authors.
9
8
Original file line number Diff line number Diff line change 1
1
[[repositories.core-concepts]]
2
2
= Core concepts
3
+ :feature-scroll:
3
4
4
5
The central interface in the Spring Data repository abstraction is `Repository`.
5
6
It takes the domain class to manage as well as the identifier type of the domain class as type arguments.
Original file line number Diff line number Diff line change 1
1
[[repositories.query-methods.details]]
2
2
= Defining Query Methods
3
+ :feature-scroll:
3
4
4
5
The repository proxy has two ways to derive a store-specific query from the method name:
5
6
@@ -457,10 +458,10 @@ ifdef::feature-scroll[]
457
458
| `limit + 1` at `OffsetScrollPosition.getOffset()`
458
459
| One to many queries fetching data starting at `OffsetScrollPosition.getOffset()` applying limiting.
459
460
a| A `Window` can only navigate to the next `Window`.
460
- endif::[]
461
461
462
462
* `Window` provides details whether there is more data to fetch.
463
463
* Offset-based queries becomes inefficient when the offset is too large because the database still has to materialize the full result.
464
+ endif::[]
464
465
465
466
| `Page<T>`
466
467
| `Pageable.getPageSize()` at `Pageable.getOffset()`
@@ -518,8 +519,6 @@ QSort sort = QSort.by(QPerson.firstname.asc())
518
519
.and(QSort.by(QPerson.lastname.desc()));
519
520
----
520
521
521
- ifdef::feature-scroll[]
522
- endif::[]
523
522
524
523
[[repositories.limit-query-result]]
525
524
=== Limiting Query Results
You can’t perform that action at this time.
0 commit comments