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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: iBatis Dynamic update queries