diff --git a/src/main/asciidoc/index.adoc b/src/main/asciidoc/index.adoc index 29fec7115..a11bfef66 100644 --- a/src/main/asciidoc/index.adoc +++ b/src/main/asciidoc/index.adoc @@ -19,6 +19,7 @@ include::preface.adoc[] :leveloffset: +1 include::dependencies.adoc[] include::repositories.adoc[] +include::query-by-example.adoc[] include::auditing.adoc[] :leveloffset: -1 diff --git a/src/main/asciidoc/query-by-example.adoc b/src/main/asciidoc/query-by-example.adoc index f74e65a40..ab63fd71f 100644 --- a/src/main/asciidoc/query-by-example.adoc +++ b/src/main/asciidoc/query-by-example.adoc @@ -1,13 +1,15 @@ -[[query.by.example]] -== Query by Example +[[query-by-example]] += Query by Example -=== Introduction +[[query-by-example.introduction]] +== Introduction This chapter will give you an introduction to Query by Example and explain how to use Examples. Query by Example (QBE) is a user-friendly querying technique with a simple interface. It allows dynamic query creation and does not require to write queries containing field names. In fact, Query by Example does not require to write queries using store-specific query languages at all. -=== Usage +[[query-by-example.usage]] +== Usage The Query by Example API consists of three parts: @@ -48,7 +50,7 @@ public class Person { ---- ==== -This is a simple domain object. You can use it to create an `Example`. By default, fields having `null` values are ignored, and strings are matched using the store specific defaults. Examples can be built by either using the `of` factory method or by using <>. `Example` is immutable. +This is a simple domain object. You can use it to create an `Example`. By default, fields having `null` values are ignored, and strings are matched using the store specific defaults. Examples can be built by either using the `of` factory method or by using <>. `Example` is immutable. .Simple Example ==== @@ -81,10 +83,10 @@ public interface QueryByExampleExecutor { ---- ==== -You can read more about <> below. +You can read more about <> below. -[[query.by.example.matcher]] -=== Example matchers +[[query-by-example.matchers]] +== Example matchers Examples are not limited to default settings. You can specify own defaults for string matching, null handling and property-specific settings using the `ExampleMatcher`.