java - Iterate list of Objects in Ibatis -
I have a list of objects where I want to recycle and access a particular area in Ibatis SQL.
East.
I will pass a list of a student object (list (student) in the form of parameters and must be included to reach the ID for each object bean. How do i do this
foreign language - looking for the tags that you are Example:
& lt; Select ID = "selectPostIn" resultType = "domain.blog.Post" & gt; Choose from * WHERE ID in PO & lt; Foreach items = "item" index = "index" store = "list" open = "(" separator = "," closed = ")" & gt; # {Items} & lt; / Foreach & gt; & Lt; / Select & gt;
For more information, read the chapter "Dynamic SQL".
By the way, iBatis is no longer developed and is stable, it is now called "MyBatis" and the whole developer team is away from Apache.
Comments
Post a Comment