ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Punzalan <jasonpunza...@gmail.com>
Subject select with iterate
Date Sat, 23 Apr 2005 23:18:05 GMT
Can someone show me an example of doing a select with iterate? Is it 
possible to do the following....

<statement id="getAllByList" resultClass="Content" parameterClass="Content" 
resultMap="content-result" >
<dynamic> 
<iterate property="idList">
select * from content where
id = #idList[]#
</iterate>
</dynamic>
</statement>

I'm currently getting an java.sql.SQLException...running mysql.

Thanks

Mime
View raw message