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.

public class student {string id; String name; }

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

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -