Which database ?

Certainly SQL server will automatically (and always) set the value TIMESTAMP
fields with the date and time of insert/update.

Cheers,

Charles.

>-----Original Message-----
>From: Yuriy Zubarev [mailto:[EMAIL PROTECTED]]
>Sent: 22 November 2002 10:03
>To: OJB Users List
>Subject: Null value for DATE/TIMESTAMP fields
>
>
>Hello everyone,
>
>I have a property in my object of type java.util.Date
>which is mapped to DATE type (or TIMESTAMP) into 
>repository.xml. Corresponding database field is of
>type Timestamp, it's nullable and doesn't have
>default value. The problem is that 
>when I set this property to null and persist the object
>I end up having current date (and time) in database
>and that's not expected behaviour. Dumb implementation
>of FiledConversion that returns null without any logic
>didn't help.
>
>Any help would be greatly appreciated.
>
>Thanks,
>Yuriy Zubarev
>
>__________________________________________________
>Do you Yahoo!?
>Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
>http://mailplus.yahoo.com
>
>--
>To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


This email and any attachments are strictly confidential and are intended
solely for the addressee. If you are not the intended recipient you must
not disclose, forward, copy or take any action in reliance on this message
or its attachments. If you have received this email in error please notify
the sender as soon as possible and delete it from your computer systems.
Any views or opinions presented are solely those of the author and do not
necessarily reflect those of HPD Software Limited or its affiliates.

 At present the integrity of email across the internet cannot be guaranteed
and messages sent via this medium are potentially at risk.  All liability
is excluded to the extent permitted by law for any claims arising as a re-
sult of the use of this medium to transmit information by or to 
HPD Software Limited or its affiliates.



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

Reply via email to