ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Beemsterboer Software <h...@beemsterboer-software.nl>
Subject Re: Procedures in iBatis
Date Wed, 19 Apr 2006 16:16:46 GMT
Try this:
    <typeAlias alias="order" type="pojo.Order" />
    <resultMap id="orderResult" class="order">
        <result property="prop1" column="column1"/>
        <result property="prop2" column="column2"/>
    </resultMap>
   
    <procedure id="getOrders" resultMap="orderResult">
        {call get_data()}
    </procedure>

Suman.Mishra@ubs.com wrote:
> Hi,
>  
> I have a sybase procedure which doesnt take any parameter. Its a 
> combination of few select statements. Can someone please help me with 
> the syntax where parameter property is blank.
>  
> Can someone help me with this block -
>
> <parameterMap id="getOrders" resultClass="java.util.HashMap" >
>
> *<parameter property="xxx" jdbcType="VARCHAR" mode="IN"/> --------->>>

> I dont need this*
>
> </parameterMap>
>
> <procedure id="getOrders" parameterMap = "getOrders">
>
> {get_data()}
>
> </procedure>
>
>  
>
> Thanks in advance,
> Suman Mishra
> 203-719-1698
>

Mime
View raw message