In general it is impossible to override properties defined in @MappedSuperclass to change how they will be handled during auditing.

Description

It seems there are several use cases with this issue but most important for me is

@MappedSuperclass
class A {
@Audited
private String value;
}

@Entity
@Audited
class MyAutided extends A {
}

@Entity
class MyNotAutided extends A {
}

I need MyNotAutided is not audited at all (there is not MyNotAutided_AUD table and MyNotAutided revisions are not created)
nut seems it is impossible because use case above leads to creating MyNotAutided_AUD table and creating of revisions for MyNotAutided.

I assume @AuditOverride must support it to say that MyNotAutided.value is not audited but it doesn't work.

Environment

None

Activity

Show:
Lukasz Antoniak
January 9, 2012, 10:55 PM

It is now possible with @AuditOverride annotation. You can review pull request's test cases for details.

Steve Ebersole
January 11, 2012, 8:11 PM

Prepping 4.0.1

Assignee

Lukasz Antoniak

Reporter

Eugene Goroschenya

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Critical
Configure