我在***.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对象本身就有的属性,有什么办法可以做到吗?