CompositeIdWithGeneratorTest needs a standard way to compare timestamps
-----------------------------------------------------------------------
Key: HHH-3652
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3652
Project: Hibernate Core
Issue Type: Bug
Components: testsuite
Environment: Branch_3_3 and trunk / MSSQL 2005
Reporter: Juraci Paixao Krohling
Assignee: Juraci Paixao Krohling
Attachments: CompositeIdWithGeneratorTest.java.diff
Entities retrieved from database have milliseconds in its timestamp, while the timestamp
of the same record doesn't. So, when comparing both in assertEquals, it gives a
failure, even though the timestamps are the same.
Formatting both timestamps using SimpleDateFormat makes it pass. The attached patch fixes
it, using the longest format possible without milliseconds.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira