Fixed
Details
Assignee
Marco BelladelliMarco BelladelliReporter
Christoph WatzlChristoph WatzlComponents
Affects versions
Priority
Critical
Details
Details
Assignee
Marco Belladelli
Marco BelladelliReporter
Christoph Watzl
Christoph WatzlComponents
Affects versions
Priority
Created January 9, 2023 at 3:15 PM
Updated February 7, 2023 at 11:20 AM
Resolved January 27, 2023 at 1:03 PM
When using an
@Embedded
value object that has a collection with orphan removal, trying to delete the root entity throws aPropertyAccessException
. The same scenario used to work without issue in Hibernate 5.I have prepared an example test project to demonstrate the issue.
Model:
Test case:
Of particular interest is this message:
Apparently, for some reason,
AbstractEntityPersister
is trying to reflectively access the id property of the Parent entity but applies the getter to the embeddable child value type, which makes no sense.