committed by
Christoph Strobl
parent
34dc9ff09f
commit
5b9a5b17eb
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user