From 010075d531db328cb7433d217c46c7f825456659 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Thu, 14 Nov 2024 10:31:37 +0100 Subject: [PATCH] Reflect `IS NULL`/`IS NOT NULL` usage for derived queries using `null` as argument. Closes #3674 --- src/main/antora/modules/ROOT/pages/jpa/query-methods.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/antora/modules/ROOT/pages/jpa/query-methods.adoc b/src/main/antora/modules/ROOT/pages/jpa/query-methods.adoc index d71088c274..8657d42ae4 100644 --- a/src/main/antora/modules/ROOT/pages/jpa/query-methods.adoc +++ b/src/main/antora/modules/ROOT/pages/jpa/query-methods.adoc @@ -44,7 +44,7 @@ The following table describes the keywords supported for JPA and what a method c |`Distinct`|`findDistinctByLastnameAndFirstname`|`select distinct ... where x.lastname = ?1 and x.firstname = ?2` |`And`|`findByLastnameAndFirstname`|`… where x.lastname = ?1 and x.firstname = ?2` |`Or`|`findByLastnameOrFirstname`|`… where x.lastname = ?1 or x.firstname = ?2` -|`Is`, `Equals`|`findByFirstname`,`findByFirstnameIs`,`findByFirstnameEquals`|`… where x.firstname = ?1` +|`Is`, `Equals`|`findByFirstname`,`findByFirstnameIs`,`findByFirstnameEquals`|`… where x.firstname = ?1` (or `… where x.firstname IS NULL` if the argument is `null`) |`Between`|`findByStartDateBetween`|`… where x.startDate between ?1 and ?2` |`LessThan`|`findByAgeLessThan`|`… where x.age < ?1` |`LessThanEqual`|`findByAgeLessThanEqual`|`… where x.age \<= ?1`