Restrictions查询用法
Restrictions查詢用法
| HQL運算符 | QBC運算符 | 含義 |
| = | Restrictions.eq() | 等于equal |
| <>? | Restrictions.ne() | 不等于not equal |
| >? | Restrictions.gt() | 大于greater than |
| >= | Restrictions.ge() | 大于等于greater than or equal |
| <? | Restrictions.lt() | 小于less than |
| <= | Restrictions.le() | 小于等于less than or equal |
| is null | Restrictions.isnull() | 等于空值 |
| is not null | Restrictions.isNotNull() | 非空值 |
| like | Restrictions.like() | 字符串模式匹配 |
| and | Restrictions.and() | 邏輯與 |
| and | Restrictions.conjunction() | 邏輯與 |
| or | Restrictions.or() | 邏輯或 |
| or | Restrictions.disjunction() | 邏輯或 |
| not | Restrictions.not() | 邏輯非 |
| in(列表) | Restrictions.in() | 等于列表中的某一個值 |
| not in(列表) | Restrictions.not(Restrictions.in()) | 不等于列表中任意一個值 |
| between x and y | Restrictions.between() | 閉區間xy中的任意值 |
| not between x and y | Restrictions.not(Restrictions..between()) | 小于值X或者大于值y |
轉載于:https://www.cnblogs.com/821067197qqcom/p/9394598.html
總結
以上是生活随笔為你收集整理的Restrictions查询用法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: visual studio code搭建
- 下一篇: iPhone年年焕新改为3到13个月:可