This content has been marked as final.
Show 1 reply
-
1. Re: How create two database schemas with Envers Hibernate
ccranfor Jul 12, 2016 8:45 PM (in response to jedaro)If you're wanting to apply this to all your audit tables, the easiest solution is to set one of the following two configuration options depending on your database:
- org.hibernate.envers.default_schema
- org.hibernate.envers.default_catalog
If you need to set these for a subset of tables, you can always use @AuditTable ( Envers equivalent to the JPA @Table annotation ) and specify either the schema or catalog value.