ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: Update with two beans
Date Thu, 23 Jun 2005 04:48:13 GMT
I have no idea what you're doing, but it looks like it should "work" 
(whatever it is...). ;-)

Cheers,
Clinton


On 6/22/05, Lurtz Ugluk <lurtzugluk@yahoo.es> wrote:
> 
> Hi,
> 
> how can I do an update with two parameter beans and
> without a resultmap??
> Something like this:
> 
> Hashtable hm = new Hashtable();
> 
> hm.put("setBean", setBeanObject);
> 
> hm.put("whereBean", whereBeanObject);
> 
> sqlMap.update("update", hm);
> 
> And in the xml?? I'm putting this, but I have errors
> 
> <!-- Statement Update de base de datos-->
> 
> <statement id="updateME"
> parameterClass="java.util.Hashtable">
> 
> UPDATE table
> 
> SET valueSet = <isEqual property="value"
> compareProperty="key" compareValue="setBean">
> #value.newValue# </isEqual>
> 
> WHERE id = <isEqual property="value"
> compareProperty="key" compareValue="whereBean">
> #value.whereValue# </isEqual>
> 
> </statement>
> 
> 
> 
> Is correct? Any other ways?
> 
> Thanks.
> 
> 
> 
> 
> 
> 
> 
> ______________________________________________
> Renovamos el Correo Yahoo!
> Nuevos servicios, más seguridad
> http://correo.yahoo.es
>

Mime
View raw message