After updating Hibernate and Envers from version 4.3.11 to 5.3.6 the application fails to start due to a ClassCastException: org.hibernate.mapping.Bag cannot be cast to org.hibernate.mapping.IndexedCollection
After some debugging I found out that this happens on an entity with a @OneToMany collection which is ordered using @OrderBy.
, I've opened a PR with the changes I believe solve your issue. if you want, you're welcomed to build the PR with your code and see whether it works. The PR is based on master (5.4), so I'm not sure how that may impact compatibility with your existing code base.
Thanks @Chris Cranford, I'll give a try and let you know as soon as possible. It will probably take a week.
Any chance to get the fix for 5.3.x?
we will only backport critical bugfixes to 5.3.
But... the good news is that 5.4 is really the direct continuation of 5.3 with only bugfixes (except if you use EntityGraphs where there are a few improvements) so upgrading to 5.4 should be easy.
I plan to release 5.4.0 next week, you can already check CR2 works for you.
Thanks, I'll try 5.4.x.