首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

Hibernate Criteria 恒量与方法

2013-08-06 
Hibernate Criteria 常量与方法MatchMode 包含的常量MatchMode.ANYWHERE 模糊匹配 MatchMode.EXACT精确匹

Hibernate Criteria 常量与方法

MatchMode 包含的常量MatchMode.ANYWHERE 模糊匹配 MatchMode.EXACT    精确匹配MatchMode.START    以某个字符为开头进行匹配MatchMode.END      以某个字符为结尾进行匹配RestrictionsRestrictions.eq             等于Restrictions.allEq          使用Map,使用key/value进行多个等于的比较Restrictions.gt             大于>Restrictions.ge             大于等于>=Restrictions.lt             小于<Restrictions.le             小于等于<=Restrictions.between        对应SQL的BETWEEN子句Restrictions.like           对应SQL的LIKE子句Restrictions.in             对应SQL的in子句Restrictions.add            and关系Restrictions.or             or关系Restrictions.sqlRestriction SQL限定查询


热点排行