ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reub...@sonic.net
Subject isNotNull / insert / custom type handler
Date Wed, 16 Nov 2005 19:51:59 GMT
Is this a bug, or am I doing something wrong?

 Here's my insert statement.

    <insert id="createDeployment" parameterClass="deployment">
        INSERT INTO Deployment (
            environmentId, deploymentTypeId, deploymentStatusId,
        ) VALUES (
            #environmentId#, #deploymentTypeId#, #deploymentStatusId#,
        <selectKey resultClass="int" keyProperty="deploymentId">
            SELECT @@IDENTITY as value

deploymentTypeId and deploymentStatusId are enums in the bean, mapped to
values using custom type handlers. Without the isNotNull structure around
threadCountOverride (which *is* nullable), the statement works. With the
isNotNull, deploymentStatusId and deploymentTypeId are mapped to
UnknownTypeHandler, and the insert fails to map the parameters from the


(I will close the bug in JIRA if this turns out to be my problem...)

View raw message