Results 1 to 2 of 2

Thread: Calling Stored Procedure in iBatis with Spring

  1. #1
    Join Date
    Aug 2004
    Location
    Hong Kong
    Posts
    18

    Default Calling Stored Procedure in iBatis with Spring

    I cannot find any method in the SqlMapClientTemplate that can call the stored procedure defined in the iBatis?

    Is there anyone have idea on this?

    Dave :oops:
    Beginner of Spring!

  2. #2
    Join Date
    Aug 2004
    Location
    Brookfield, WI
    Posts
    3

    Default Proc in iBATIS

    The iBATIS documentation is a little sketchy when it comes to dealing with Stored procs. But I am able to execute stored proc via. SQLMaps. Create your sqlMap xml file and setup your proc like this:

    <procedure id="getAccounts" resultMap="accounts" parameterClass="com.j2eegeek.ibatistutorial.domain .AccountID">
    {call dbname.procname(#acctID#}
    </procedure>

    The input can be a parameterClass or just a Map.


    <parameterMap id="getAccountsCall" class="map">
    <parameter property="acctID" jdbcType="INT" javaType="java.lang.Integer" mode="IN"/>
    </parameterMap>

    Email me directly and I can give you more info. hope this helps.

    --Vinny
    http://www.j2eegeek.com/blog/

Similar Threads

  1. Replies: 3
    Last Post: Dec 2nd, 2010, 08:34 AM
  2. Informix stored procedure & spring
    By miha in forum Data
    Replies: 8
    Last Post: Dec 5th, 2006, 10:44 PM
  3. Spring + postgres + stored procedure
    By spring_dummy in forum Data
    Replies: 6
    Last Post: Feb 27th, 2006, 03:02 PM
  4. Replies: 1
    Last Post: Feb 16th, 2006, 11:10 AM
  5. Replies: 14
    Last Post: Feb 21st, 2005, 05:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •