Enver Auditing: Audit Join table is missing columns or behaving incorrectly on a @ManyToOne mapping

Description

Trying to audit the Many table on the @ManyToOne relationship. The generated Audit Join table has REVTYPE and other columns missing.

Scenario:
We are using a join table to establish the Many to One relationship and we would like to Audit this join table for any changes.

As a test case: We have Person Table (person_id) & Address Table (address_id) and PersonAddress table (Join Table). Each Address can have 0 or more persons.

Our requirement is to Audit Person table and in turn PersonAddress join table for any mapping changes with respect to Person.

However the PersonAddress_Audit table that enver/hibernate creates seems to have person_id, REV columns only. We were expecting to see two other columns - address_id and REVTYPE.

Is this a bug or is there something that we are not doing right?

Environment

Hibernate: 3.3.2.GA; Envers: 1.2.2.GA; jbpm:4.1; hibernate.jpa: 3.4.0.GA
Database: MS SQL Server 2008

Activity

Show:
Mohan K
August 17, 2010, 3:30 PM

Any one else face this same issue? Any pointers would be appreciated.

Mohan K
September 16, 2010, 7:22 PM

This is a bug in later versions as well (3.5.4.) Any hope of this getting resolved?

Brett Meyer
April 7, 2014, 5:41 PM

In an effort to clean up, in bulk, tickets that are most likely out of date, we're transitioning all ORM 3 tickets to an "Awaiting Test Case" state. Please see http://in.relation.to/Bloggers/HibernateORMJIRAPoliciesAndCleanUpTactics for more information.

If this is still a legitimate bug in ORM 4, please provide either a test case that reproduces it or enough detail (entities, mappings, snippets, etc.) to show that it still fails on 4. If nothing is received within 3 months or so, we'll be automatically closing them.

Thank you!

Brett Meyer
July 8, 2014, 3:11 PM

Bulk rejecting stale issues. If this is still a legitimate issue on ORM 4, feel free to comment and attach a test case. I'll address responses case-by-case. Thanks!

Assignee

Unassigned

Reporter

Mohan K

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure