Search code examples
hibernatehibernate-envers

How store Hibernate Envers audit tables into a different database?


Hibernate Envers can store audit tables into a different schema or catalog but could you tell me if it is possible to configure Envers to store them into a different database (another persistence unit) ?

Thanks for your helps.


Solution

  • No, that's not currently possible. However often a catalog is a synonym for database (depending on the database, of course). So maybe that's an option to consider.