How to store Hibernate Envers audit tables into a different schema?

后端 未结 1 989
情深已故
情深已故 2021-01-20 18:48

How to configure Hibernate Envers to store audit tables into a different schema?

jpahibernate-envers

相关标签:
1条回答
  • 2021-01-20 19:24

    According to the hibernate user guide - envers configuration documentation this should be possible by setting the configuration

    org.hibernate.envers.default_schema
    

    defaulting to

    null (same schema as table being audited)

    The default schema name that should be used for audit tables. Can be overridden using the @AuditTable( schema="…​" ) annotation. If not present, the schema will be the same as the schema of the table being audited.

    0 讨论(0)
提交回复
热议问题