You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Fabiano Fernandes de Souza <fa...@estudar.com.br> on 2004/01/07 14:07:43 UTC
Persisting Date and Time
I got in a value object a property named recDate of java.util.Date.
It's mapped in resource.xml as jdbc-type="DATE" and
mapped in the ddl as rec_date TIMESTAMP.
I persist the object with the current Date using something like:
"setRecDate(new Date()) and then I persist it using ODMG.
Everything goes fine but in the table keeps registered only the date
(not date and time) like this: 2004-01-06 00:00:00
What can I do to register the date and the time too?
Thanks.
--
Fabiano F. Souza
Tecnologia da Informação
Estudar Soluções em Treinamento Corporativo.
(31) 32849294 - fabiano@estudar.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org