Search code examples
hibernatehibernate-envers

Hibernate Envers: Rename REVINFO table


I have two questions about REVINFO table.

  1. Can I change the REVINFO Table to something like "RVSN_INFO"?

  2. If I'm auditing 9 tables. Should every table have a REVINFO table?


Solution

    1. You can create an entity and annotate it with @RevisionEntity. If you don't have it, the default named table REVINFO is created. Check out the documentation for more info.
    2. No, a single table holds information for all revisions.