aspose file tools*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "iBatis Dynamic update queries" Watch "iBatis Dynamic update queries" New topic
Author

iBatis Dynamic update queries

venkat penmatsa
Greenhorn

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'

WHERE ID in

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

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

</foreach>

</update>


Thanks in Advance
 
Consider Paul's rocket mass heater.
 
subject: iBatis Dynamic update queries