[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:00 EST 2015
[ https://issues.jboss.org/browse/HIBERNATE-120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13130880#comment-13130880 ]
Steve Ebersole commented on HIBERNATE-120:
------------------------------------------
This is not the correct project to report Hibernate issues under. This Jira project is for reporting issues in the integration between Hibernate and WildFly. To report issues in Hibernate, please use https://hibernate.atlassian.net. Thanks.
> 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