ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashish Kulkarni" <ashish.kulkarn...@gmail.com>
Subject Get XML as resultClass from Ibatis issue
Date Tue, 17 Apr 2007 17:43:27 GMT
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