changed non-updatable attributes mark enhanced entity dirty

Description

A change to a field (marked with insertable = false) marks an entity dirty when using bytecode enhancement, but not otherwise.
The attached test case (run with "mvn test") produces (with enhancement enabled):

It produces the expected result without enhancement:

Environment

None

Status

Assignee

Luis Barreiro

Reporter

Alexander Pinske

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure