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: Inserting Default values if object member is null
Date Mon, 14 Nov 2005 18:19:33 GMT
Uhm, use a database default?

Larry


On 11/14/05, Jason Hall <JHall@cihi.ca> wrote:
>
> Hi,
>
> I just want to know if an object member is set to null and the database
> column is configured as not null,
> is there a way in the sqlmapconfig.xml to set a default value say -1 in a
> parameter map.
> I've used nullValue but this is not exactly what i want. I need a default
> value like a database default.
>
> Thanks,
>
> JH.
>

Mime
View raw message