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
Post a Comment