AleBu
unread,Oct 27, 2011, 7:08:03 AM10/27/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mybatis-user
Hi, I have an Oracle package with function in it which returns VARCHAR
object. Package definition for that function is:
function my_func( p_param1 in varchar2 ) return varchar2;
Mapping looks like:
<update id="my_func" parameterType="mypackage.MyFuncParam"
statementType="CALLABLE">
{#{returnValue,jdbcType=VARCHAR,javaType=String,mode=OUT}
= call MY_PACKAGE.MY_FUNC(#{param1,jdbcType=VARCHAR,mode=IN})}
</update>
MyFuncParam class contains 2 properties:
String param1;
String returnValue;
But calling that method I am having an exception like:
java.lang.ClassCastException: java.lang.Integer cannot be cast to
java.lang.String