我在***.hbn.xml中自己定义的po属性时,sql语句可以引入外部的参数吗?
例如:
<property name="hejient_count" type="java.lang.String"
formula="(select * from table t where t.name=fname )" >
</property>
我想让fname是我在action中定义的一个参数,而不是这个po对象本身就有的属性,有什么办法可以做到吗?
例如:
<property name="hejient_count" type="java.lang.String"
formula="(select * from table t where t.name=fname )" >
</property>
我想让fname是我在action中定义的一个参数,而不是这个po对象本身就有的属性,有什么办法可以做到吗?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货