From f3dfd0b52c08d097b19ae191118e71d6749f52a3 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Mon, 1 Mar 2021 10:27:10 +0100 Subject: [PATCH] Document primitive type properties when using Query by Example. Closes #2308. --- src/main/asciidoc/query-by-example.adoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/asciidoc/query-by-example.adoc b/src/main/asciidoc/query-by-example.adoc index 068663712..a572f166a 100644 --- a/src/main/asciidoc/query-by-example.adoc +++ b/src/main/asciidoc/query-by-example.adoc @@ -55,6 +55,9 @@ public class Person { The preceding example shows a simple domain object. You can use it to create an `Example`. By default, fields having `null` values are ignored, and strings are matched by using the store specific defaults. + +NOTE: Inclusion of properties into a Query by Example criteria is based on nullability. Properties using primitive types (`int`, `double`, …) are always included unless <>. + Examples can be built by either using the `of` factory method or by using <>. `Example` is immutable. The following listing shows a simple Example: