You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Clinton Begin (JIRA)" <ib...@incubator.apache.org> on 2004/11/27 08:09:20 UTC

[jira] Closed: (IBATIS-11) parameter type handlers have no effect

     [ http://nagoya.apache.org/jira/browse/IBATIS-11?page=history ]
     
Clinton Begin closed IBATIS-11:
-------------------------------

      Assign To: Clinton Begin
     Resolution: Cannot Reproduce
    Fix Version: 2.0.8

Added unit tests to verify that this works fine. 

> parameter type handlers have no effect
> --------------------------------------
>
>          Key: IBATIS-11
>          URL: http://nagoya.apache.org/jira/browse/IBATIS-11
>      Project: iBatis for Java
>         Type: Bug
>   Components: SQL Maps
>     Reporter: Clinton Begin
>     Assignee: Clinton Begin
>      Fix For: 2.0.8

>
>  Howdy,
> I got typeHandlers to work with resultMaps w/o a hitch
> but when i register a handler for a field in a
> parameterMap (used by an insert) it has no effect.
> code is below..
> Jon
> ----
> <parameterMap id="insertMap" class="Inquiry">
> <parameter property="idNumber"/>
> <parameter property="SSN"/>
> <parameter property="firstName"
> javaType="java.lang.String" jdbcType="CHAR"
> typeHandler="StringHandler" />
> <parameter property="lastName"
> javaType="java.lang.String" jdbcType="CHAR"
> typeHandler="StringHandler" />
> </parameterMap>
> <insert id="insertInquiry" parameterMap="insertMap">
> INSERT INTO INQUIRY
> (ID_NUMBER, SOCIAL_SEC_NUMBER, FIRST_NAME,
> LAST_NAME) VALUES(?, ?, ?, ?)
> </insert>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira