| Presently, if a user wishes to map an element collection in Envers and have it audited, they must either map such a collection by either specifying an order/index column
@ElementCollection
@OrderColumn
private List<Other> otherList;
or by explicitly using a Set container rather than a bag-semantic based container:
@ElementCollection
private Set<Other> otherSet;
Another alternative that Hibernate supports is the use of @CollectionId and we should look into adding support for that custom annotation. |