At first glance, that result map should work assuming you use query for list unless I'm missing something.
-----Original Message----- From: vinay.a [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 1:16 AM To: [email protected] Subject: resultmap inthe form of IList<string> hi, I need to know if I can send IList<string> into the query as parameter and get back an IList<string> as a result of a select statement. The select query is as follows: c# code: IList<string> stringDataList -->Input parameter <select id="GetStringData" parameterClass="string" resultMap="GetStringData-Result"> SELECT Col1 FROM tbl1 WHERE Col1 IN <iterate property="stringDataList" open="(" close=")" conjunction="," > #stringDataList[]# </iterate> </select> The resultmap statement is as follows: <resultMap id="GetStringData-Result" class="string"> <result column="Col1" nullValue="" /> </resultMap> Can anybody please guide me on how to write the resultmap statement. I don't think the above is correct. ----------------------------------------------------------------------- One more thing, if I use a HashTable instead of IList<string> as output parameter how should I write the resultmap Thanks, Regards, vinay -- View this message in context: http://www.nabble.com/resultmap-inthe-form-of-IList%3Cstring%3E-tp180839 29p18083929.html Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. -------------------------------------------------------- Princeton Retirement Group, Inc - Important Terms This E-mail is not intended for distribution to, or use by, any person or entity in any location where such distribution or use would be contrary to law or regulation, or which would subject Princeton Retirement Group, Inc. or any affiliate to any registration requirement within such location. This E-mail may contain privileged or confidential information or may otherwise be protected by work product immunity or other legal rules. No confidentiality or privilege is waived or lost by any mistransmission. Access, copying or re-use of information by non-intended or non-authorized recipients is prohibited. If you are not an intended recipient of this E-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute any portion of this E-mail. The transmission and content of this E-mail cannot be guaranteed to be secure or error-free. Therefore, we cannot represent that the information in this E-mail is complete, accurate, uncorrupted, timely or free of viruses, and Princeton Retirement Group, Inc. cannot accept any liability for E-mails that have been altered in the course of delivery. Princeton Retirement Group, Inc. reserves the right to monitor, review and retain all electronic communications, including E-mail, traveling through its networks and systems (subject to and in accordance with local laws). If any of your details are incorrect or if you no longer wish to receive mailings such as this by E-mail please contact the sender by reply E-mail. --------------------------------------------------------

