|
The schema for audit tables, including revinfo & revchanges can be specified via org.hibernate.envers.default_schema.
If you have a custom revision entity, annotated with @RevisionEntity, and extending DefaultTrackingModifiedEntitiesRevisionEntity, it is not created in the specified schema. This can be "fixed" by specifying the schema attribute on @Table but it should really follow the schema defined using default_schema. Besides having to define the audit schema in two places this would break deployments where the only change would have been to the schemas defined in the Hibernate config.
In addition, the related revchanges table is not created in the defined default_schema.
HHH-7441
suggests overriding the @JoinTable on @ModifiedEntityNames but this is also messy and should simply follow the schema defined using default_schema.
|