ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Lamey <cla...@localmatters.com>
Subject Re: Array or List in a ParameterClass
Date Tue, 25 Sep 2007 17:50:23 GMT
Hello,

Take a look at pages 49 and 50 of the developer's guide.  It has examples of
what you're trying to do.

     http://ibatis.apache.org/docs/java/pdf/iBATIS-SqlMaps-2_en.pdf

Cheers,
Chris

On 9/25/07 11:45 AM, "Felipe Maza" <felipe@felipem.com> wrote:

> Hi,
> 
> I'm trying send a array to ibatis for do multiple updates in a sentence
> 
> I read examples of <iterate> for List, but i don't know how apply to my xml
> 
> 
> 
> 
> for example, i have some users for update
> 
> <update id="example" parameterClass="???">
>     update users set user= ??? where id_user= ???
> </update>
> 
> 
> 
> 
> other solution is do a bucle in the DAO, but i need do more 1000 updates and
> this system is more slow for the server and bbdd :(
> 
> thanks.


Mime
View raw message