+ -
当前位置:首页 → 问答吧 → hibernate3中怎么在配置文件中编写动态hql?

hibernate3中怎么在配置文件中编写动态hql?

时间:2011-11-30

来源:互联网

RT,就像如下ibatis这样:
。。。。。
<dynamicprepend="where">
<isNotEmptyprepend="and"property="name">
namelike'%$name$%'
</isNotEmpty>
<isNotEmptyprepend="and"property="path">
pathlike'%path$%'
</isNotEmpty>
<isNotEmptyprepend="and"property="area_id">
area_id=#area_id#
</isNotEmpty>
<isNotEmptyprepend="and"property="hided">
hided=#hided#
</isNotEmpty>
。。。。。

作者: heroshen1988   发布时间: 2011-11-30