Envers ignores custom comparators for SortedSets

Description

That issue was originally found in hibernate 3.6.0.Final, but I was able to reproduce it on the newest version of hibernate-core.
It's all about setting custom comparator for mapped SortedSets.
AuditReader ignores custom comparator setting from hibernate config and this leads to a ClassCastException if set elements are not Comparable. Making them Comparable is a quick, yet not very clean way to fix the problem.

Attachments

1
  • 30 Apr 2011, 04:32 PM

Activity

Brett MeyerMarch 7, 2014 at 10:08 PM

Bulk closing tickets resolved in released versions

AdamAJune 9, 2011 at 7:55 AM

Yes, it was fixed in pull request https://github.com/hibernate/hibernate-core/pull/76

Former userJune 9, 2011 at 1:19 AM

Assuming it is in fact fixed.

Former userJune 9, 2011 at 1:12 AM

I only see test cases. Was this issue fixed?

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Created April 30, 2011 at 4:32 PM
Updated March 7, 2014 at 10:08 PM
Resolved June 9, 2011 at 1:19 AM

Flag notifications