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

Support the use of @CollectionId on bag-based element collections in audit entity mappings.

Description

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

1 2 3 @ElementCollection @OrderColumn private List<Other> otherList;

or by explicitly using a Set container rather than a bag-semantic based container:

1 2 @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.

Environment

None

Status

Assignee

Chris Cranford

Reporter

Chris Cranford

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Minor