1 Reply Latest reply on Jul 12, 2016 8:45 PM by ccranfor
      • 1. Re: How create two database  schemas with Envers Hibernate
        ccranfor

        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.