Skip to content

Commit 9e39ada

Browse files
committed
DATAJPA-218 - Tweaked reference documentation on Query by Example.
Fixed section anchors to match convention. Added level offsets to adapt to changes in Spring Data Commons.
1 parent 14616b0 commit 9e39ada

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/asciidoc/jpa.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,8 +604,8 @@ List<Customer> customers = customerRepository.findAll(
604604
As you can see, `Specifications` offers some glue-code methods to chain and combine `Specification` instances. Thus extending your data access layer is just a matter of creating new `Specification` implementations and combining them with ones already existing.
605605
====
606606

607-
include::{spring-data-commons-docs}/query-by-example.adoc[]
608-
include::query-by-example.adoc[]
607+
include::{spring-data-commons-docs}/query-by-example.adoc[leveloffset=+1]
608+
include::query-by-example.adoc[leveloffset=+1]
609609

610610
[[transactions]]
611611
== Transactionality

src/main/asciidoc/query-by-example.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[[query.by.example.execution]]
2-
== Executing Example
1+
[[query-by-example.execution]]
2+
== Executing an example
33

44
In Spring Data JPA you can use Query by Example with Repositories.
55

0 commit comments

Comments
 (0)