[jboss-jira] [JBoss JIRA] (HIBERNATE-120) Hibernate maps type "timestamp" to Mysql's type "datetime" not "timestamp"
Steve Ebersole (JIRA)
issues at jboss.org
Thu Nov 19 10:13:01 EST 2015
[ https://issues.jboss.org/browse/HIBERNATE-120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Ebersole closed HIBERNATE-120.
------------------------------------
Resolution: Rejected
> Hibernate maps type "timestamp" to Mysql's type "datetime" not "timestamp"
> --------------------------------------------------------------------------
>
> Key: HIBERNATE-120
> URL: https://issues.jboss.org/browse/HIBERNATE-120
> Project: Hibernate Integration
> Issue Type: Bug
> Reporter: zhou yanming
> Assignee: Steve Ebersole
> Priority: Critical
>
> datetime will trim millisecond
> record.setLastModified(new Date(1250053078708));
> session.save(record);
> ....
> record = session.load(record.getId());
> System.out.println(record.getLastModified()); // here is 125005307000 not expected 1250053078708
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list