I was using iBatis 2.3 as Spring 3.0 doesnt support MyBatis 3.0 yet.
In MyBatis 3.0 you can do something like below.
<insert id="insert_1" statementType="CALLABLE"
parameterType="test.ContactDdo">
begin insert into
SR1CUST1.CONTACT_INFORMATION( CONTACT_TYPE,
CONTACT_MODE,
VALUE)
values(#{contactType,mode=IN,jdbcType=CHAR},#{contactMode,mode=IN,jdbcType=CHAR},
#{value,mode=IN,jdbcType=VARCHAR}) returning contact_info_id,
updated_time into
#{contactId,
mode=OUT,jdbcType=BIGINT}, #{updatedTime,
mode=OUT,jdbcType=TIMESTAMP}; end;
</insert>
Thanks,
Prashant
On Jul 12, 2:17 pm, rajesh kalaria <
rajesh.kala...@gmail.com> wrote:
> Prashant,
> Thanks for your response. Actually I have seen this thread earlier as
> well, but for me it was not working. I am using this DTD "
http://ibatis.apache.org/dtd/ibatis-3-mapper.dtd" in my XML mapper file.
> As soon as I try to use <procedure> element in my XML mapper file, it
> shows error. By looking into this DTD, it seems that there is no such
> procedure element.
> Did you use the same DTD ? I am using iBATIS 3.0.
>
> Thanks,
> Rajesh
>
> On Mon, Jul 12, 2010 at 11:53 AM, Prashant Neginahal
> <
prashu.n...@gmail.com>wrote:
>
>
>
>
>
> > Have a look at this, i had same issue. I am using anonymous PL/SQL
> > block for the same.
>
> >
http://groups.google.com/group/mybatis-user/browse_thread/thread/93b5...
> Belapur, Navi Mumbai, Maharashtra- Hide quoted text -
>
> - Show quoted text -