diff --git a/src/main/asciidoc/jpa.adoc b/src/main/asciidoc/jpa.adoc index 8af19d339..79ba9d240 100644 --- a/src/main/asciidoc/jpa.adoc +++ b/src/main/asciidoc/jpa.adoc @@ -144,8 +144,8 @@ We will create a query using the JPA criteria API from this but essentially this |Keyword|Sample|JPQL snippet |`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?` -|`Between`|`findByStartDateBetween`|`… where x.startDate between 1? and ?2` +|`Is,Equals`|`findByFirstname`,`findByFirstnameIs`,`findByFirstnameEquals`|`… where x.firstname = ?1` +|`Between`|`findByStartDateBetween`|`… where x.startDate between ?1 and ?2` |`LessThan`|`findByAgeLessThan`|`… where x.age < ?1` |`LessThanEqual`|`findByAgeLessThanEqual`|`… where x.age <= ?1` |`GreaterThan`|`findByAgeGreaterThan`|`… where x.age > ?1`