Fix the fieldsPreUpdateNeeded property index allocation in AbstractEntityPersister#update

Description

The way the fieldsPreUpdateNeeded array is populated is wrong since it does not follow the same logic with the dirtyFields array that's going to be merged with.

This needs to be fixed so that the dirtyFields will contain only the properties that were actually updated.

Environment

None

Status

Assignee

Vlad Mihalcea

Reporter

Vlad Mihalcea

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure