How can i persist date and Time with JPA Hibernate in MySql database ? -


i want persist date , time jpa in mysql database.

but problem is, date correct, not time. time 02:00:00

my implementation in entity class following:

@temporal(temporaltype.timestamp) private date date; 

and how set im action class date:

actualfactory.setdate(new java.util.date()); 

the result in db date colum today :

2015-09-30 02:00:00 


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

excel - I can't get the attachement of the email PHP -

node.js - Express and Redis - If session exists for this user, don't allow access -