Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 32219 invoked from network); 14 Nov 2005 18:19:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Nov 2005 18:19:56 -0000 Received: (qmail 39081 invoked by uid 500); 14 Nov 2005 18:19:54 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 39067 invoked by uid 500); 14 Nov 2005 18:19:54 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 39053 invoked by uid 99); 14 Nov 2005 18:19:54 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2005 10:19:54 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of larry.meadors@gmail.com designates 64.233.162.195 as permitted sender) Received: from [64.233.162.195] (HELO zproxy.gmail.com) (64.233.162.195) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2005 10:19:46 -0800 Received: by zproxy.gmail.com with SMTP id l8so1287948nzf for ; Mon, 14 Nov 2005 10:19:33 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GIoaTfwAWlsFFGe2/K19RLZnaxT/ygbFnxjt++VSSuUdisd0RFRoyzrtjrmnsWN9qTJUHUJYCi53K63LS0J8OqbWaqf9IxQGbvA0hEPMSFLQ5M6hW8Jv/339dWdZWWvDrz2trj9x9/pWY+wAjn4ud5ArHhW2CymT/wvtfUaRPso= Received: by 10.36.109.16 with SMTP id h16mr2205184nzc; Mon, 14 Nov 2005 10:19:33 -0800 (PST) Received: by 10.36.119.1 with HTTP; Mon, 14 Nov 2005 10:19:33 -0800 (PST) Message-ID: Date: Mon, 14 Nov 2005 11:19:33 -0700 From: Larry Meadors Reply-To: lmeadors@apache.org Sender: larry.meadors@gmail.com To: user-java@ibatis.apache.org Subject: Re: Inserting Default values if object member is null In-Reply-To: <373399D6389D8C42B4EAD9BE2B6B5C5F03814EEC@tormail01.cihi.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <373399D6389D8C42B4EAD9BE2B6B5C5F03814EEC@tormail01.cihi.ca> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Uhm, use a database default? Larry On 11/14/05, Jason Hall 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. >