Skip to content

Commit bf4837e

Browse files
committed
DATAJPA-218 - Update documentation.
1 parent 084abb2 commit bf4837e

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/main/asciidoc/index.adoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ include::{spring-data-commons-docs}/repositories.adoc[]
2424

2525
:leveloffset: +1
2626
include::jpa.adoc[]
27-
include::{spring-data-commons-docs}/query-by-example.adoc[]
28-
include::query-by-example.adoc[]
2927
:leveloffset: -1
3028

3129
[[appendix]]

src/main/asciidoc/jpa.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,9 @@ 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[]
609+
607610
[[transactions]]
608611
== Transactionality
609612
CRUD methods on repository instances are transactional by default. For reading operations the transaction configuration `readOnly` flag is set to true, all others are configured with a plain `@Transactional` so that default transaction configuration applies. For details see JavaDoc of `CrudRepository`. If you need to tweak transaction configuration for one of the methods declared in a repository simply redeclare the method in your repository interface as follows:

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

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

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

@@ -22,6 +22,8 @@ public class PersonService {
2222
----
2323
====
2424

25+
An `Example` containing an untyped `ExampleSpec` uses the Repository type. Typed `ExampleSpec` use their type for creating JPA queries.
26+
2527
NOTE: Only SingularAttribute properties can be used for property matching.
2628

2729

0 commit comments

Comments
 (0)