ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Meadors" <lmead...@apache.org>
Subject Re: setting type for nullable columns
Date Wed, 06 Sep 2006 15:39:17 GMT
That is a cool idea, and would work great for beans...and would just
be another reason that Maps suck. ;-)

Larry


On 9/6/06, Sanjiv Jivan <sanjiv.jivan@gmail.com> wrote:
> From the Ibatis doc :
> "Most drivers only need the type specified for nullable columns. Therefore,
> for such drivers you only need to specify the type for the columns that are
> nullable.
> Note! When using an Oracle driver, you will get an "Invalid column type"
> error if you attempt to set a null value to a column without specifying its
> type."
>
> Just wondering if Ibatis could infer the type based on the javabean property
> member type when setting null values instead of requiring the user to
> specify NUMERIC etc for nullable columns.. Kinda like the shorthand version
> of select mappings where introspection is used instead of explicit
> resultMap's
>
> Thanks,
> Sanjiv
>

Mime
View raw message