From 9e39adaf61b80cefaeee3f92f384a331d179e47d Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Fri, 18 Mar 2016 09:24:23 +0100 Subject: [PATCH] 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. --- src/main/asciidoc/jpa.adoc | 4 ++-- src/main/asciidoc/query-by-example.adoc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/asciidoc/jpa.adoc b/src/main/asciidoc/jpa.adoc index 13315ba54..8342ab10b 100644 --- a/src/main/asciidoc/jpa.adoc +++ b/src/main/asciidoc/jpa.adoc @@ -604,8 +604,8 @@ List customers = customerRepository.findAll( 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. ==== -include::{spring-data-commons-docs}/query-by-example.adoc[] -include::query-by-example.adoc[] +include::{spring-data-commons-docs}/query-by-example.adoc[leveloffset=+1] +include::query-by-example.adoc[leveloffset=+1] [[transactions]] == Transactionality diff --git a/src/main/asciidoc/query-by-example.adoc b/src/main/asciidoc/query-by-example.adoc index 05a4ac1b6..7cea4fb5b 100644 --- a/src/main/asciidoc/query-by-example.adoc +++ b/src/main/asciidoc/query-by-example.adoc @@ -1,5 +1,5 @@ -[[query.by.example.execution]] -== Executing Example +[[query-by-example.execution]] +== Executing an example In Spring Data JPA you can use Query by Example with Repositories.