*Description of problem: https://hibernate.atlassian.net/browse/HHH-9444 The temporal datatypes 'TIME/DATETIME/TIMESTAMP' supports fractional values starting from MySQL 5.6.4 version. See: http://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html Without defining the number of fractional decimals it defaults to 0. In this case '2013-04-01 23:59:59.500' rounds to '2013-04-02 00:00:00'. This affects tests in test suite: example from: org.hibernate.test.cid.CompositeIdWithGeneratorTest.testDetachedProperty // change a non-id property, but do not persist Date persistedTimestamp = record.getTimestamp(); Date newTimestamp = new Date(persistedTimestamp.getTime() + 1); record.setTimestamp(newTimestamp); assertEquals( df.format(persistedTimestamp), df.format(found) ); *Version-Release number of selected component (if applicable): Hibernate-orm 4.2.14.SP1
Pavel Janousek <pjanouse> updated the status of jira EAP6-209 to Reopened
This BZ references HHH-9444, which has to do with test failures. The tests failures are fixed by the new dialect added for HHH-8401. Should this BZ reference HHH-8401 instead?
HHH-9444 references back to HHH-8401, so I consider the breadcrumb trail complete.
Hibernate upgrade 4.2.17.Final-redhat-1/https://bugzilla.redhat.com/show_bug.cgi?id=1173454 should have fixed this
Kabir Khan <kabir.khan> updated the status of jira EAP6-209 to Resolved
verified on EAP 6.4.0.ER1
John Doyle <jdoyle> updated the status of jira EAP6-340 to Closed
John Doyle <jdoyle> updated the status of jira EAP6-209 to Closed