Manthos edited a comment on Bug HHH-7437

Just to clarify: this only happens when audited withModifiedFlag=true or org.hibernate.envers.global_with_modified_flag=true. Without modified flag there is no problem.

It also happens with maps

Caused by: java.lang.ClassCastException: java.util.HashMap cannot be cast to org.hibernate.collection.spi.PersistentCollection
at org.hibernate.envers.entities.mapper.relation.AbstractCollectionMapper.mapModifiedFlagsToMapFromEntity(AbstractCollectionMapper.java:142) ~[hibernate-envers-4.1.7.Final.jar:4.1.7.Final]
at org.hibernate.envers.entities.mapper.MultiPropertyMapper.map(MultiPropertyMapper.java:89) ~[hibernate-envers-4.1.7.Final.jar:4.1.7.Final]
at org.hibernate.envers.synchronization.work.AddWorkUnit.<init>(AddWorkUnit.java:49) ~[hibernate-envers-4.1.7.Final.jar:4.1.7.Final]

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira