Yes, but not like that - you can put them in a map (or composite
object) and use it like this:
Map m = new HashMap();
m.put("class1", class1);
m.put("class2", class2);
return queryForList("blah.getList", m);
<select id="queryId" resultMap="result" >
select
tab1.col1, tab2.col2
from
tab1, tab2
where tab1.col1 = #class1.col1:DECIMAL#
and tab2.col2 = #class2.col2:DECIMAL#
</select>
Larry
On 12/15/06, Nereida <[EMAIL PROTECTED]> wrote:
Hi all,
Is it possible to make a query using two parameter classes like this:
<select id="queryId" resultMap="result" parameterClass="class1, class2" >
select tab1.col1, tab2.col2
from tab1, tab2
where tab1.col1 = #class1.col1:DECIMAL#
and tab2.col2 = #class2.col2:DECIMAL#
</select>
Thanks.