Keyword Sample JPQL snippet
And findByLastnameAndFirstname … where x.lastname = ?1 and x.firstname = ?2
Or findByLastnameOrFirstname … where x.lastname = ?1 or x.firstname = ?2
Between findByStartDateBetween … where x.startDate between 1? and ?2
LessThan findByAgeLessThan … where x.age < ?1
GreaterThan findByAgeGreaterThan … where x.age > ?1
After findByStartDateAfter … where x.startDate > ?1
Before findByStartDateBefore … where x.startDate < ?1
IsNull findByAgeIsNull … where x.age is null
IsNotNull,NotNull findByAge(Is)NotNull … where x.age not null
Like findByFirstnameLike … where x.firstname like ?1
NotLike findByFirstnameNotLike … where x.firstname not like ?1
StartingWith findByFirstnameStartingWith … where x.firstname like ?1 (parameter bound with appended %)
EndingWith findByFirstnameEndingWith … where x.firstname like ?1 (parameter bound with prepended %)
Containing findByFirstnameContaining … where x.firstname like ?1 (parameter bound wrapped in %)
OrderBy findByAgeOrderByLastnameDesc … where x.age = ?1 order by x.lastname desc
Not findByLastnameNot … where x.lastname <> ?1
In findByAgeIn(Collection<Age> ages) … where x.age in ?1
NotIn findByAgeNotIn(Collection<Age> age) … where x.age not in ?1
True findByActiveTrue() … where x.active = true
False findByActiveFalse() … where x.active = false

最新文章

  1. SQL Server CheckPoint的几个误区
  2. ios隐藏键盘
  3. Entity Framework CodeFirst数据迁移
  4. Qt之镜像旋转
  5. dataTables表格分页排序等交互
  6. python处理ajax请求
  7. NSURLSession、NSURLConnection
  8. ADO.NET学习小结【1】正在更新...
  9. IIS支持APK/ISO文件下载的方法
  10. ExtJS4.2学习(三)——入门基础
  11. TF Multi-GPU single input queue
  12. Javabean介绍
  13. 关于sqlserver数据库max()方法的使用
  14. 【jira】java.lang.OutOfMemoryError: GC overhead limit exceeded
  15. Python学习笔记-数字类型
  16. grid和flex区别
  17. SpringBoot切换Tomcat容器,SpringBoot使用Jetty容器
  18. Android设计 - 图标设计概述(Iconography)
  19. BZOJ4144: [AMPPZ2014]Petrol(最短路 最小生成树)
  20. HDU 3853 LOOPS 期望dp

热门文章

  1. SQL常见的可优化点
  2. weblogic性能调优参考
  3. DataList与Repeater嵌套绑定
  4. eclipse修改工程名
  5. Jquery实现购物车物品数量的加减特效
  6. 【Andorid开发框架学习】之Mina开发之客户端开发
  7. Python try/except/finally应用
  8. QT5中的信号与槽与C++ 11的function的配合
  9. 【mybatis】之批量添加
  10. 使用eclipse和maven生成java web程序war包