Enhancer dirty tracking doesn't work with inherited entities

Description

Given these two classes:

Then this code:

One would expect the "title" and "oca" fields to be dirty. However, Hibernate says only the "oca" field is dirty.

It appears the enhancer's dirty checker doesn't correctly handle inherited fields.

Here's a pull request which includes a test case demonstrating the issue: https://github.com/hibernate/hibernate-orm/pull/1654

Environment

None

Status

Assignee

Luis Barreiro

Reporter

Craig Andrews

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