Question

I have kind of naive question related to envers. Can we name a audit table to something other then the default one, i.e., TableName_AUD and ya not just Prefix or suffix, full name.

Was it helpful?

Solution

Yes, if you annotate a given entity with @AuditTable you can specify the table that should be used. I don't think you can specify a global naming strategy to use.

OTHER TIPS

use configuration http://docs.jboss.org/envers/docs/index.html#configuration and you've got custom prefix or suffix for audited tables

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top