File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes iBatis Dynamic update queries Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "iBatis Dynamic update queries" Watch "iBatis Dynamic update queries" New topic

iBatis Dynamic update queries

venkat penmatsa

Joined: Jul 23, 2011
Posts: 17
Hi All,

I am trying to run the below ibatis update query , but i am getting binding exception , please check and let me whether the below query is proper or not and also post some examples of update queries having foreach or iterate loop.

<update id=update" parameterType="com.ParamType">

UPDATE t_sample_data SET FLAG='Y'


<foreach item="Id" index="index" collection="Ids"

open="(" separator="," close=")">#{Id}



Thanks in Advance
I agree. Here's the link:
subject: iBatis Dynamic update queries
It's not a secret anymore!