hibernate的Restrictions用方说明

方法

说明

Restrictions.eq

Restrictions.allEq

利用Map来进行多个等于的限制

Restrictions.gt

Restrictions.ge

>=

Restrictions.lt

Restrictions.le

<=

Restrictions.between

BETWEEN

Restrictions.like

LIKE   (注意"%"+like+"%")

Restrictions.in

in

Restrictions.and

and

Restrictions.or

or

Restrictions.sqlRestriction

SQL限定查询

posted @ 2010-12-09 16:49  【小洲】  阅读(193)  评论(0编辑  收藏  举报