ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Hall" <JH...@cihi.ca>
Subject Inserting Default values if object member is null
Date Mon, 14 Nov 2005 18:16:29 GMT
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