262 |
263 | And |
264 | findByNameAndPassword |
265 | … where x.name = ?1 and x.password = ?2 |
266 |
267 |
268 | Or |
269 | findByNameOrPassword |
270 | … where x.name = ?1 or x.password = ?2 |
271 |
272 |
273 | Is,Equals |
274 | findByNameIs,findByNameEquals |
275 | … where x.name = ?1 |
276 |
277 |
278 | Between |
279 | findByStartDateBetween |
280 | … where x.startDate between ?1 and ?2 |
281 |
282 |
283 | LessThan |
284 | findByAgeLessThan |
285 | … where x.age < ?1 |
286 |
287 |
288 | LessThanEqual |
289 | findByAgeLessThanEqual |
290 | … where x.age ⇐ ?1 |
291 |
292 |
293 | GreaterThan |
294 | findByAgeGreaterThan |
295 | … where x.age > ?1 |
296 |
297 |
298 | GreaterThanEqual |
299 | findByAgeGreaterThanEqual |
300 | … where x.age >= ?1 |
301 |
302 |
303 | After |
304 | findByStartDateAfter |
305 | … where x.startDate > ?1 |
306 |
307 |
308 | Before |
309 | findByStartDateBefore |
310 | … where x.startDate < ?1 |
311 |
312 |
313 | IsNull |
314 | findByAgeIsNull |
315 | … where x.age is null |
316 |
317 |
318 | IsNotNull,NotNull |
319 | findByAge(Is)NotNull |
320 | … where x.age not null |
321 |
322 |
323 | Like |
324 | findByNameLike |
325 | … where x.name like ?1 |
326 |
327 |
328 | NotLike |
329 | findByNameNotLike |
330 | … where x.name not like ?1 |
331 |
332 |
333 | StartingWith |
334 | findByNameStartingWith |
335 | … where x.name like ?1 (parameter bound with appended %) |
336 |
337 |
338 | EndingWith |
339 | findByNameEndingWith |
340 | … where x.name like ?1 (parameter bound with prepended %) |
341 |
342 |
343 | Containing |
344 | findByNameContaining |
345 | … where x.name like ?1 (parameter bound wrapped in %) |
346 |
347 |
348 | OrderBy |
349 | findByAgeOrderByNameDesc |
350 | … where x.age = ?1 order by x.name desc |
351 |
352 |
353 | Not |
354 | findByNameNot |
355 | … where x.name <> ?1 |
356 |
357 |
358 | In |
359 | findByAgeIn(Collection ages) |
360 | … where x.age in ?1 |
361 |
362 |
363 | NotIn |
364 | findByAgeNotIn(Collection age) |
365 | … where x.age not in ?1 |
366 |
367 |
368 | TRUE |
369 | findByActiveTrue |
370 | … where x.active = true |
371 |
372 |
373 | FALSE |
374 | findByActiveFalse |
375 | … where x.active = false |
376 |
377 |
378 | IgnoreCase |
379 | findByNameIgnoreCase |
380 | … where UPPER(x.name) = UPPER(?1)
381 | |
382 |
383 |
384 |