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:

Attachments

1

Activity

Show:

Vlad MihalceaOctober 31, 2017 at 11:20 AM

Applied PR upstream.

Luis BarreiroOctober 25, 2017 at 7:01 PM

I changed the issue title, as the issue here is not if an attribute is 'insertable' but rather if it's 'updatable' (that's when dirty tracking kicks in)

Pull Request: https://github.com/hibernate/hibernate-orm/pull/2037

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created October 22, 2017 at 9:53 PM
Updated February 6, 2018 at 5:02 PM
Resolved October 31, 2017 at 11:20 AM