Problem: There is currently no way to customize the audit table name of an @ElementCollection with or without a custom table name given by @CollectionTable
Similar annotation pairs for changing hibernate and hibernate envers table naming:
@Table & @AuditTable
@SecondaryTable & @SecondaryAuditTable
Adding a new complementing annotation for @CollectionTable for customizing audit table name of @ElementCollection would improve the envers customization capabilities and close a feature gap.
Looking at @CollectionTable, there are a number of attributes but I believe from Envers perspective, I think only allowing the name, schema, and catalog attributes to be specified are sufficient. Those certainly satisfy the JIRA's requirement but thinking about the other attributes, I'm not convinced they're necessary. The first pass I've made follows this premise.
The implementation will be marked as @Incubating and therefore will not be subject to our normal release guidelines regarding changes, allowing us to make incremental tweaks in 6.0 as needed to satisfy user needs.