ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Johnson" <jmjhn...@hotmail.com>
Subject Order By
Date Mon, 22 May 2006 19:41:19 GMT

I have the following select statement:
<select id="getaTableByAll" resultMap="result" parameterClass="BusClass">

select * from aTable where col1 like #col1# and col2 like #col2# order by $orderBy$

</select>

However, I do not have (and do not want) orderBy as a data member of class BusClass. How can
I pass in orderBy without it being a data member of class BusClass? Thanks for the help in
advance.

Mime
View raw message