ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suman.Mis...@ubs.com
Subject RE: Procedures in iBatis
Date Wed, 19 Apr 2006 16:22:31 GMT
 
Hi,
I don't have any property to specify. Please let me know.


Regards,
Suman Mishra
203-719-1698



-----Original Message-----
From: Beemsterboer Software [mailto:hans@beemsterboer-software.nl] 
Sent: Wednesday, April 19, 2006 12:17 PM
To: user-java@ibatis.apache.org
Subject: Re: Procedures in iBatis

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
>

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


Mime
View raw message