Browse Source

Document primitive type properties when using Query by Example.

Closes #2308.
pull/2318/head
Mark Paluch 5 years ago
parent
commit
f3dfd0b52c
No known key found for this signature in database
GPG Key ID: 4406B84C1661DCD1
  1. 3
      src/main/asciidoc/query-by-example.adoc

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

@ -55,6 +55,9 @@ public class Person { @@ -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 <<query-by-example.matchers,ignoring the property path>>.
Examples can be built by either using the `of` factory method or by using <<query-by-example.matchers,`ExampleMatcher`>>. `Example` is immutable.
The following listing shows a simple Example:

Loading…
Cancel
Save