Envers doesnt track all columns anymore

Description

Envers doesnt track all columns anymore:

Audited table:
create table CREW_DAILY_STATISTICS (
CREW_DAILY_STATISTICS_ID number(10,0) not null,
STAFF_NUM varchar2(12 char) not null,
STATISTICS_DATE timestamp not null,
CREDIT_TIME number(5,0) not null,
DUTY_TIME number(5,0) not null,
FLYING_TIME number(5,0) not null,
NIGHT_FLYING_TIME number(5,0) not null,
NON_STD_FLYING_TIME number(5,0) not null,
DAYS_OFF_COUNT number(5,0) not null,
LEAVE_COUNT number(5,0) not null,
BLANK_DAY_COUNT number(5,0) not null,
primary key (CREW_DAILY_STATISTICS_ID),
unique (STAFF_NUM, STATISTICS_DATE)
);

AUD table in Hibernate 3.6.0:
create table CREW_DAILY_STATISTICS_AUD (
CREW_DAILY_STATISTICS_ID number(10,0) not null,
REV number(19,0) not null,
REVTYPE number(3,0),
STAFF_NUM varchar2(12 char),
STATISTICS_DATE timestamp,
CREDIT_TIME number(5,0),
DUTY_TIME number(5,0),
FLYING_TIME number(5,0),
NIGHT_FLYING_TIME number(5,0),
NON_STD_FLYING_TIME number(5,0),
DAYS_OFF_COUNT number(5,0),
LEAVE_COUNT number(5,0),
BLANK_DAY_COUNT number(5,0),
primary key (CREW_DAILY_STATISTICS_ID, REV)
);

AUD table in Hibernate 3.6.1:
create table CREW_DAILY_STATISTICS_AUD (
CREW_DAILY_STATISTICS_ID number(10,0) not null,
REV number(19,0) not null,
REVTYPE number(3,0),
primary key (CREW_DAILY_STATISTICS_ID, REV)
);

Environment

WinXP, Oracle

Activity

Show:
AdamA
May 14, 2011, 5:56 PM

Great! The first step is generally to clone the repository on GitHub and explore the code a bit to get a hang of it.
I think that the issue should be resolvable by being able to specify which superclasses should be audited, don't you think? (as I wrote in the previous comments).

Adam

Ivan Gracia
May 15, 2011, 1:16 PM

Hello,

I have a similar problem auditing a subclass which inherits from a non-audited abstract class and posted it on the envers discussions, in which Adam pointed me to this JIRA issue. As I told him already, I'd be interested in contributing to the resolution of this issue. I'll clone the repository and explore the code a bit and see if I can get an idea of how to get started.

Cheers.

Lukasz Antoniak
June 13, 2011, 8:02 PM

I've added new auditParents property as Adam suggested few comments before (@Audited(auditParents = {ParentA.class, ParentB.class})). Just give me few more days to verify it with more than two test cases and create a pull request .

Regards,
Lukasz Antoniak

Lukasz Antoniak
June 18, 2011, 10:15 AM
Brett Meyer
March 7, 2014, 10:09 PM

Bulk closing tickets resolved in released versions

Assignee

AdamA

Reporter

SławekG

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure