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.

Environment

3.6.0.Final
Oracle10g

Status

Assignee

AdamA

Reporter

Michał Skowronek

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

4.0.0.Alpha2

Priority

Major
Configure