hi,

Thanks for your reply.

I figured out the problem,
It was that, there is no need to define a resultmap, when the return type is
of primitive datatypes like int, string etc.
The resultmap is needed when return type is of some custom Business Object
or Hashtable.

All I did was to create a hashtable and add the IList<string> into the
hashtable and send it as parameter.

The statement then looked like:

    <select id="GetStringData" parameterClass="Hashtable" >
      SELECT Col1 FROM tbl1
        WHERE Col1 IN 
      <iterate property="stringDataList" open="(" close=")" conjunction=","
>
        #stringDataList[]#
      </iterate>
    </select>

Here 'stringDataList' is the IList<string> added into the hashtable.

regards,
vinay


-- 
View this message in context: 
http://www.nabble.com/resultmap-inthe-form-of-IList%3Cstring%3E-tp18083929p18090226.html
Sent from the iBATIS - User - Cs mailing list archive at Nabble.com.

Reply via email to