Skip to content

Commit a31d396

Browse files
committed
Small clarification regarding OUT parameters and Maps.
1 parent 8a98c8d commit a31d396

File tree

1 file changed

+4
-1
lines changed
  • src/test/java/org/apache/ibatis/submitted/sptests

1 file changed

+4
-1
lines changed

src/test/java/org/apache/ibatis/submitted/sptests/SPMapper.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
{call xxx (parm1, parm2)}
2020
3. Must set the MODE of all parameters (IN, OUT, INOUT)
2121
4. All IN, OUT, and INOUT parameters must be a part of the
22-
parameterType or parameterMap (discouraged).
22+
parameterType or parameterMap (discouraged). The only exception
23+
is if you are using a Map as a parameter object. In that case you
24+
do not need to add OUT parameters to the map before calling, MyBatis
25+
will add them for you automatically.
2326
5. resultType or resultMap (more typically) is only used if
2427
the procedure returns a result set. IMPORTANT: Oracle ref
2528
cursors are usually returned as parameters, NOT directly

0 commit comments

Comments
 (0)