Manually create audit table for Hibernate Envers
1 answer
It will only generate tables if you use one of the ddl auto options.
If you want to control the naming of audit tables during this process, or create the tables themselves and use them differently, you provide a value for the @AuditTable annotation and / or specify a prefix and suffix in the configuration.
Also, you can control / specify the name of the global table REVINFO using the @RevisionEntity annotation.
http://docs.jboss.org/envers/docs/#tables
All of this is detailed in the full documentation:
+4
source to share