Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 22897 invoked from network); 4 Feb 2004 17:14:40 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 4 Feb 2004 17:14:40 -0000 Received: (qmail 1017 invoked by uid 500); 4 Feb 2004 17:13:34 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 970 invoked by uid 500); 4 Feb 2004 17:13:33 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 840 invoked from network); 4 Feb 2004 17:13:32 -0000 Received: from unknown (HELO cartero.tissat.es) (193.16.216.34) by daedalus.apache.org with SMTP; 4 Feb 2004 17:13:32 -0000 Received: from capitular.tissat.es (unknown [193.16.216.39]) by cartero.tissat.es (Postfix) with ESMTP id AF0761F3DB for ; Wed, 4 Feb 2004 18:13:16 +0100 (CET) Received: from tissat.es ([193.16.216.166]) by capitular.tissat.es (Netscape Messaging Server 3.6) with ESMTP id AAA6E6E for ; Wed, 4 Feb 2004 18:13:29 +0100 Message-ID: <40212834.6000102@tissat.es> Date: Wed, 04 Feb 2004 18:13:24 +0100 From: "Felipe Ramos" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Apache Torque Users List Subject: Re: doInsert default column values References: <00c801c3eb3f$61f180f0$7e001e0a@Avatar> <402124E2.2090305@tissat.es> <013201c3eb41$e71ec1a0$7e001e0a@Avatar> Content-Type: multipart/alternative; boundary="------------090506050907040606060806" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --------------090506050907040606060806 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Then, you have only one solution, you must set that field to null customer.setBirthdate(null); Henrik Vendelbo wrote: >The date column is already a Date object, so type object shouldnt really >change anything. > >----- Original Message ----- >From: "Felipe Ramos" >To: "Apache Torque Users List" >Sent: Wednesday, February 04, 2004 4:59 PM >Subject: Re: doInsert default column values > > > > >>For that column, you must put in the schema javaType='object' to allow >>to be null. >> >>If customer_id has javaType='object' you must put javaType='object' in >>every customer_id column in the schema to avoid errors >> >> >>Henrik Vendelbo wrote: >> >> >> >>>Apparently fields that have not been assigned a value will get a default >>>one, rather than NULL. >>> >>>Specificly my date columns are assigned todays date, rather than NULL. >>> >>>How do I change this behavior ? >>> >>>Henrik >>> >>> >>> >>>--------------------------------------------------------------------- >>>To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org >>>For additional commands, e-mail: torque-user-help@db.apache.org >>> >>> >>> >>> >>> >>> >>-- >>------------------------ >>Felipe Ramos >>Tissat SA >>C/ Orense 34-9� >>28020 Madrid >>Tel: (+34) 91 4175913 >>Fax: (+34) 91 4172914 >>Mail: framos@tissat.es >>------------------------ >> >> >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org >>For additional commands, e-mail: torque-user-help@db.apache.org >> >> >> >> >> >> > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org >For additional commands, e-mail: torque-user-help@db.apache.org > > > > -- ------------------------ Felipe Ramos Tissat SA C/ Orense 34-9� 28020 Madrid Tel: (+34) 91 4175913 Fax: (+34) 91 4172914 Mail: framos@tissat.es ------------------------ --------------090506050907040606060806--