HHH-10242 is too aggressive in cases of FIELD access

Description

https://hibernate.atlassian.net/browse/HHH-10242#icft=HHH-10242 is sometimes too aggressive in its checks; mainly cases where the explicit AccessType#FIELD is specified.

Activity

Show:

Steve EbersoleNovember 20, 2015 at 6:47 PM

I am highly shocked (after looking deeper) that the change I am pushing here works. It works in the test suites, which is all I can verify atm. Scott will run the TCK for me to see how it affects those tests.

The problem is a cheick/egg condition. The change was to pass the "class/hierarchy default AccessType" into the PropertyContainer so that it knows how to build its list of persistent attributes. The problem is that the caller of PropertyContainer uses this list of persistent attributes in order to find the Id/EmbeddedId so that it can determine the "class/hierarchy default AccessType".

Fixed

Details

Assignee

Reporter

Time tracking

3.05h logged

Fix versions

Affects versions

Priority

Created November 20, 2015 at 3:33 PM
Updated December 2, 2015 at 5:52 PM
Resolved November 20, 2015 at 6:49 PM

Flag notifications