ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Yee <r...@cruzio.com>
Subject Re: Get XML as resultClass from Ibatis issue
Date Wed, 18 Apr 2007 13:08:23 GMT
Ashish,
That is how it works.

-Richard


Ashish Kulkarni wrote:
> Hi
> I have following definition in my sql-map file
>
> <select id="getINCOTERMSGR" resultClass="xml" 
> parameterClass="java.math.BigDecimal" xmlResultName="INCOTERMSGR">
>     SELECT M009D as INCOTERMDESCGR FROM pu1012 , cf1009 WHERE PCPORD = 
> #value# and M009KY = '3T1'concat PCINCO
> </select>
>
> I run the query as below
>
> List list = sqlMapClient.queryForList("getINCOTERMSGR", new 
> BigDecimal("20"));
>
> I was expecting that list will be filled with Document objects,  
> Inside list is filled String objects.
>
> Is this how it works, or am i doing some thing wrong?
>
>
> Ashish
>


Mime
View raw message