Support a way to trigger an audit of a parent association when a child is modified.

Description

If we assume a user has an entity relationship of a Parent/Child association and the user modifies just the child entity type, Envers will not specifically generate an audit row for the parent.

There are use cases where users would like to be able to specifically track some parent association when child entity types are modified. Presently this is only reasonably possible by having the user modify some attribute on the parent type so it gets included in the audit tracking.

Ideally we'd like to look into support where a user can trigger this behavior via some type of configuration through an annotation rather than explicit in their user code.

We may investigate this as part of HHH-11326.

Environment

None

Activity

Show:
Gail Badner
January 13, 2018, 2:15 AM

A commit was mistakenly committed with a commit message that referred to this jira. It should have referred to HHH-12150:
https://github.com/hibernate/hibernate-orm/commit/794c784c0de6439f25c25cd96ffad601dde9f11d

Xavier Dury
February 27, 2018, 1:12 PM

Is this issue also related to ?

Chris Cranford
February 27, 2018, 1:53 PM

It is definitely similar; however, I'm not sure I necessarily want to enforce this behavior solely around the use of a @Version annotated attribute; however, we can definitely see.

Assignee

Chris Cranford

Reporter

Chris Cranford

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major
Configure