Hibernate Restrictions QBC运算符
hibernate 运算符
2023-09-14 09:06:24 时间
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 |
相关文章
- JavaWeb_(Hibernate框架)Hibernate论坛项目中多对多案例
- hibernate validate
- ssh(Spring+Spring mvc+hibernate)——DeptDaoImpl.java
- sh(Spring+Spring mvc+hibernate)——IDeptDao.java
- struts+hibernate+oracle+easyui实现lazyout组件的简单案例——Action的实现类
- hibernate正向生成数据库表以及配置——Teacher.java
- hibernate配置详情3(Dept)
- Hibernate基本概念 (3)
- hibernate二级缓存ehcache
- Hibernate day01
- hibernate 各种主键生成策略(转)
- Hibernate 自动生成数据库表
- 【转载】erlang 进程的 hibernate
- Hibernate实体对象的生命周期(三种状态详解)
- hibernate批量删除和更新数据