Skip to content

Commit 010075d

Browse files
committed
Reflect IS NULL/IS NOT NULL usage for derived queries using null as argument.
Closes #3674
1 parent 1db98f5 commit 010075d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/antora/modules/ROOT/pages/jpa/query-methods.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The following table describes the keywords supported for JPA and what a method c
4444
|`Distinct`|`findDistinctByLastnameAndFirstname`|`select distinct ... where x.lastname = ?1 and x.firstname = ?2`
4545
|`And`|`findByLastnameAndFirstname`|`… where x.lastname = ?1 and x.firstname = ?2`
4646
|`Or`|`findByLastnameOrFirstname`|`… where x.lastname = ?1 or x.firstname = ?2`
47-
|`Is`, `Equals`|`findByFirstname`,`findByFirstnameIs`,`findByFirstnameEquals`|`… where x.firstname = ?1`
47+
|`Is`, `Equals`|`findByFirstname`,`findByFirstnameIs`,`findByFirstnameEquals`|`… where x.firstname = ?1` (or `… where x.firstname IS NULL` if the argument is `null`)
4848
|`Between`|`findByStartDateBetween`|`… where x.startDate between ?1 and ?2`
4949
|`LessThan`|`findByAgeLessThan`|`… where x.age < ?1`
5050
|`LessThanEqual`|`findByAgeLessThanEqual`|`… where x.age \<= ?1`

0 commit comments

Comments
 (0)