I have extended DefaultTrackingModifiedEntitiesRevisionEntity class for overrided jpa annotations of modifiedEntityNames members (use @AssociationOverride for changed the table name, then field name and schema into subclass)
@Entity
@RevisionEntity
@Table(name = "revinfo", schema = "revision")
@AssociationOverride(name = "modifiedEntityNames", joinTable = @JoinTable(name = "revision_changes", joinColumns = @JoinColumn(name = "rev_id"), schema = "revision"))
public class SampleRevisionEntity extends DefaultTrackingModifiedEntitiesRevisionEntity {
the hibernate schema update not generate the override specifications, and use @JoinTable attributs value define into DefaultTrackingModifiedEntitiesRevisionEntity (generate revchanges table with rev pk into public schema other generate revision_changes table with rev_id pk into revision schema)
|