[Maria-discuss] New KB Question: millisecond part is trimmed away when saving Java Date obj by hibernate
14 Feb
2012
14 Feb
'12
7:13 p.m.
A new question has been posted in the Knowledgebase:
http://kb.askmonty.org/en/millisecond-part-is-trimmed-away-when-saving-java-...
---------------------------------------- Hi,
I recently upgraded my MySQL DB to MariaDB for millisecond support. I can see the millisecond part in my upgraded database. And I tested the millisecond support by inserting a row to a table of my db. It functions well. But when I use hibernate to save a java.util.Date obj into database, millisecond part is trimmed and in MariaDB date obj is saved as: 2012-02-13 18:40:55.000. Do I need to set up something to activate millisecond support? Or I need to config hibernate for millisecond support?
Thanks a lot! ----------------------------------------
Thanks.
--
Daniel Bartholomew
MariaDB - http://mariadb.org
Monty Program - http://montyprogram.com
AskMonty Knowledgebase - http://kb.askmonty.org
4478
Age (days ago)
4478
Last active (days ago)
0 comments
1 participants
participants (1)
-
Daniel Bartholomew