ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Spencer <pau...@apache.org>
Subject How to implement <foreach> in SelectBuilder?
Date Wed, 31 Mar 2010 13:09:54 GMT
I am use the SelectBuilder to generate query statement.  I have a need to generate an IN clause.
 If I where to do this using sql-map.xml, I would use a <foreach>.
   WHERE ID in <foreach item="item" index="index" collection="list"
                 open="(" separator="," close=")"> #{item}
               < /foreach>

What is the equivalent in SqlBuilder?

Paul Spencer
---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org


Mime
View raw message