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

@DynamicUpdate should update only the modified fields of a dirty embeddable

Description

When using @DynamicUpdate, when a field within an embedded object of an entity is changed, all the fields of this embedded object are included in the update.

I intend to use @DynamicUpdate in combination with @OptimisticLocking(type = OptimisticLockType.DIRTY) in order to reduce the number of StaleObjectStateExceptions. However, with the current behavior, this strategy is not as effective as I hoped, since concurrent modifications of different columns of the same embeddable may still cause the exception.

Environment

None

Status

Assignee

Unassigned

Reporter

Rafael Yukio Hamasaki

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.4.4

Priority

Major