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.
{code:java} @ 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 { }
{code} |
|