title: Call oracle function with MyBatis (Annotation Based)
body: <p>I need call Oracle Function in MyBatis using Annotations.</p>
  
  <p>My Mapper:</p>
  
  <pre><code>@Select("{ CALL #{outParam, jdbcType=NUMERIC, mode=OUT} := ORA_FUNC( "
      + "#{pNum1, jdbcType=NUMERIC, mode=IN},"
      + "#{pNum2, jdbcType=NUMERIC, mode=IN},"
      + "#{pNum3, jdbcType=NUMERIC, mode=IN} )}")
  @Options(statementType = StatementType.CALLABLE)
  @ResultType(Integer.class)
  public Integer executeFunction(
      @Param("map") Map&lt;String, Object&gt; carteira);
  </code></pre>
  
  <p>and my call to this signature:</p>
  
  <pre><code>Map&lt;String, Object&gt; mapParameters = new HashMap&lt;String, Object&gt;();
  mapParameters.put("pNum1", carteira.getUnimedCarteira());
  mapParameters.put("pNum2", carteira.getCodCarteira());
  mapParameters.put("pNum3", carteira.getDigitoCarteira());
  mapper.obterRedeBeneficiario(mapParameters);
  return mapParameters.get("outParam").toString();
  </code></pre>
  
  <p>The <strong>outParam</strong> is null and the return of mapper is null too. </p>
  
  <p>Can anyone help-me?</p>