You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-cs@ibatis.apache.org by sanjeev40084 <sa...@hotmail.com> on 2009/07/15 15:47:10 UTC

QueryForDictionary info?

How would declare a key when you are using QueryForDictionary.

Return
DataSources.EmployeeInfo.QueryForList<ParticipantDto>(Constants.GET_ID,
null);    <---this is to get in list)

Return DataSources.EmployeeInfo.QueryForDictonary<……?             <---how
would this be if you use it by QueryForDicitonary


Any suggestions?
-- 
View this message in context: http://www.nabble.com/QueryForDictionary-info--tp24498220p24498220.html
Sent from the iBATIS - User - Cs mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-cs-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-cs-help@ibatis.apache.org


Re: QueryForDictionary info?

Posted by tech fan <mo...@gmail.com>.
return QueryForDictionary<int,ParticipantDto>("your_sql", null, "Id"); //
this assumes you have a int property named Id, mapped to PK, ur objects are
mapped to the values property of the returned IDictionary.


On 7/15/09, sanjeev40084 <sa...@hotmail.com> wrote:
>
>
> How would declare a key when you are using QueryForDictionary.
>
> Return
> DataSources.EmployeeInfo.QueryForList<ParticipantDto>(Constants.GET_ID,
> null);    <---this is to get in list)
>
> Return DataSources.EmployeeInfo.QueryForDictonary<……?             <---how
> would this be if you use it by QueryForDicitonary
>
>
> Any suggestions?
> --
> View this message in context:
> http://www.nabble.com/QueryForDictionary-info--tp24498220p24498220.html
> Sent from the iBATIS - User - Cs mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-cs-unsubscribe@ibatis.apache.org
> For additional commands, e-mail: user-cs-help@ibatis.apache.org
>
>