We're updating the issue view to help you get more done. 

Audit data not loaded for @ElementCollection

Description

Hi,

it appears to me, that envers does not find all the audited data when using an ElementCollection with a map. In the scenario described below, the data appears to be audited correctly in the database, but when trying to retrieve a revision, the map is always empty.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 @MappedSuperclass public class AbstractEntity { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; } @Entity @Audited public class A extends AbstractEntity { @ElementCollection @CollectionTable(name = "b_to_c") private Map<B, C> map = new HashMap<>(); } @Entity @Audited public class B extends AbstractEntity { } @Entity @Audited public class C extends AbstractEntity { }

Environment

None

Status

Assignee

Chris Cranford

Reporter

Jürgen Lind

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.0.10

Priority

Major