You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Pete Cassin <pe...@gmail.com> on 2005/01/12 21:46:22 UTC

type handlers and dynamic mapped statements

Hi, I'm trying to create an update query which is both dynamic and
uses type handlers for some of its parameters. Since this is a dynamic
query, I can't use a parameter map.   I saw a thread here which
referred to the syntax for including type handlers in an inline
parameter map as:
FIELD_NAME = #propertyName,typeHandlerCallback=com.test.package.handler.TheTypeHandler#

however, I tried this and it doesn't seem to work. The error I get is
"Unrecognized parameter mapping field: 'typeHandlerCallback'  "

Was this a newer feature of Ibatis that was only added recently? I'm
using 2.0.7. Or is my syntax off? I wasn't sure if the class name
should have quotes around it or not, but I tried both and got the same
error.

thanks,
Pete

Re: type handlers and dynamic mapped statements

Posted by Brandon Goodin <br...@gmail.com>.
Best thing to do is to upgrade to 2.0.9.

Brandon

On Wed, 12 Jan 2005 15:46:22 -0500, Pete Cassin <pe...@gmail.com> wrote:
> Hi, I'm trying to create an update query which is both dynamic and
> uses type handlers for some of its parameters. Since this is a dynamic
> query, I can't use a parameter map.   I saw a thread here which
> referred to the syntax for including type handlers in an inline
> parameter map as:
> FIELD_NAME = #propertyName,typeHandlerCallback=com.test.package.handler.TheTypeHandler#
> 
> however, I tried this and it doesn't seem to work. The error I get is
> "Unrecognized parameter mapping field: 'typeHandlerCallback'  "
> 
> Was this a newer feature of Ibatis that was only added recently? I'm
> using 2.0.7. Or is my syntax off? I wasn't sure if the class name
> should have quotes around it or not, but I tried both and got the same
> error.
> 
> thanks,
> Pete
>