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" <[EMAIL PROTECTED]>
To: "Apache Torque Users List" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--
------------------------
Felipe Ramos
Tissat SA
C/ Orense 34-9�
28020 Madrid
Tel: (+34) 91 4175913
Fax: (+34) 91 4172914
Mail: [EMAIL PROTECTED]
------------------------




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]









--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





--
------------------------
Felipe Ramos
Tissat SA
C/ Orense 34-9�
28020 Madrid
Tel: (+34) 91 4175913 Fax: (+34) 91 4172914
Mail: [EMAIL PROTECTED]
------------------------





Reply via email to