Time not entered in mysql ? Java

Posted by Nitesh Panchal on Stack Overflow See other posts from Stack Overflow or by Nitesh Panchal
Published on 2010-06-16T17:06:43Z Indexed on 2010/06/16 17:12 UTC
Read the original article Hit count: 144

Filed under:
|
|

Hello,

I have a datetime field in mysql table and i am using JPA for persisting data but only date goes in database. Time always shows 00:00:00. What should i do?

I am not doing any manipulation with Date. All i do is to assign new Date() to a variable and store it in database.

What am i doing wrong?

© Stack Overflow or respective owner

Related posts about java

Related posts about mysql