ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Meadors <larry.mead...@gmail.com>
Subject Re: NULL Java Integers to Oracle NUMBER
Date Fri, 19 Aug 2005 12:16:36 GMT
You can use two differnet layouts for this:

#propertyName:NUMERIC:0#

 or

#propertyName,jdbcType=NUMERIC,nullValue=0#

Anything you can do in a full parameter map, you can do using that
second syntax using name=value pairs.

Larry


On 8/18/05, Mathew Samuel <grandarchville@yahoo.com> wrote:
> 
> How do I save NULL Java Integers into Oracle where the
> field is defined as a NUMBER. For a Java String to
> VARCHAR2, I can get away with #value:VARCHAR:NO_ENTRY#
> 
> #numericValue:NUMBER# doesn't seem to work. I'd like
> to know how to do this without parameterMaps, unless
> that's the ONLY way.
> 
> Thanks,
> Mathew
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>

Mime
View raw message