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 Mykola Ostapchuk <my...@sympatico.ca> on 2003/07/07 22:29:39 UTC
DateTime in OJB
Hello,
Can anybody tell me how to map DateTime MySql field in OJB?
My realisation is the next:
<field-descriptor id="13" name="userDateInserted" column="US_date_inserted"
jdbc-type="TIMESTAMP"
conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlTimest
ampFieldConversion"/>
userDateInserted - of type java.util.Date.
After setting the Date, OJB (?) inserts right date. But time is 1 hour minus
of actual time (minutes and seconds are right).
Any suggestions?
Regards,
Mykola
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org