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