diff --git a/src/main/asciidoc/query-by-example.adoc b/src/main/asciidoc/query-by-example.adoc index 50886c40e..f74e65a40 100644 --- a/src/main/asciidoc/query-by-example.adoc +++ b/src/main/asciidoc/query-by-example.adoc @@ -86,9 +86,9 @@ You can read more about <> below. +Examples are not limited to default settings. You can specify own defaults for string matching, null handling and property-specific settings using the `ExampleMatcher`. -.Untyped Example Spec with customized matching +.Example matcher with customized matching ==== [source,java] ---- @@ -118,7 +118,7 @@ You can specify behavior for individual properties (e.g. "firstname" and "lastna ==== [source,java] ---- -ExampleMatcher exampleSpec = ExampleMatcher.untyped() +ExampleMatcher matcher = ExampleMatcher.matching() .withMatcher("firstname", endsWith()) .withMatcher("lastname", startsWith().ignoreCase()); } @@ -131,9 +131,9 @@ Another style to configure matcher options is by using Java 8 lambdas. This appr ==== [source,java] ---- -ExampleMatcher exampleSpec = ExampleMatcher.untyped() - .withMatcher("firstname", matcher -> matcher.endsWith()) - .withMatcher("firstname", matcher -> matcher.startsWith()); +ExampleMatcher matcher = ExampleMatcher.matching() + .withMatcher("firstname", match -> match.endsWith()) + .withMatcher("firstname", match -> match.startsWith()); } ---- ====