We're updating the issue view to help you get more done. 

Link to current version of entity

Description

When you annotate a field in an entity using the following annotation:

@Audited(targetAuditMode = RelationTargetAuditMode.NOT_AUDITED)

One would expect to get the current version of the entity when you get the value out of this field. This annotation is currently only used to avoid error messages when linking to an un-audited entity.

There are some situations where you want to get the current version of an entity instead of the entity at the given version.

In my case I link to users from an entity. If I get the entity from the connection, I get an outdated version of the entity. In this case I would like to always get the current version of the entity from this connection.

If the target entity is not found, original Hibernate annotations should be honored:

@NotFound(action = NotFoundAction.IGNORE)

Environment

None

Status

Assignee

Lukasz Antoniak

Reporter

Stig Runar Vangen

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

3.6.10

Priority

Major