[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-6176) Envers ignores custom comparators for SortedSets

Adam Warski (JIRA) noreply at atlassian.com
Thu Jun 9 01:55:25 EDT 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42547#action_42547 ] 

Adam Warski commented on HHH-6176:
----------------------------------

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

> Envers ignores custom comparators for SortedSets
> ------------------------------------------------
>
>                 Key: HHH-6176
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6176
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: envers
>    Affects Versions: 4.0.0.Alpha2
>         Environment: 3.6.0.Final
> Oracle10g
>            Reporter: Michał Skowronek
>            Assignee: Adam Warski
>             Fix For: 3.6.5, 4.0.0.Beta1
>
>         Attachments: Custom_comparator_issues.patch
>
>
> 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.

-- 
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the hibernate-issues mailing list