Don't update inverse association if not necessary

Description

Currently, we always perform a removal and re-add of the inverse side of associations managed by OgmEntityPersister#update(). That should not be necessary, if e.g. only a simple property of the entity on the main side has changed. This avoids some round-trips to the datastore and exposure of intermediate state to other clients.

Environment

None

Assignee

Unassigned

Reporter

Gunnar Morling

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Minor
Configure