Autorize change schema for REVCHANGES table

Description

Envers configuration allow to change schema
of all tables on persistence.xml configuration (org.hibernate.envers.default_schema attribut)
via annotation @AuditTable for audited entities and @RevisionEntity for revinfo table

But not annotations or persistence.xml configuration allow to change revchanges to a specific schema (same question for sequence use by revchanges - hibernate_sequence)

Attachments

1
  • 13 Jul 2012, 08:19 PM

Activity

Show:

Lukasz AntoniakJuly 22, 2012 at 10:00 AM

REVCHANGES table is created in the default schema or the one pointed by org.hibernate.envers.default_schema parameter. To override schema location differently, create your own revision entity and use @ModifiedEntityNames annotation. I don't see any reason to introduce new configuration options. Please clarify your expectations.

Lukasz AntoniakJuly 13, 2012 at 8:19 PM

Could you please submit a simple application or test case that reproduces this issue? Attached RevChangesSchemaTest passes.

Cyril MOREAUJuly 10, 2012 at 5:25 PM

in fact revchanges is create by DefaultTrackingModifiedEntitiesRevisionEntity

Just rewrite this classe and configure joinColumns schema (as same case when use Date timestamp to @RevisionEntity, it will be recreate class.)

Out of Date

Details

Assignee

Reporter

Priority

Created July 10, 2012 at 2:44 PM
Updated October 10, 2013 at 8:58 AM
Resolved October 10, 2013 at 8:58 AM

Flag notifications