NPE when an Embeddable column is reused in another class related by inheritance
Description
When a column used in an Embeddable is also reused in another class related by inheritance the initializer for seems to be trying to instanciate the embeddable, even though the corresponding row does not have a value. This results in an NPE when other columns of the embeddable have null values while the corresponding java attributes are non null.
In the below model, please note that the weightcolumn is reused:
The stacktrace of the error is:
I’ll try to make a PR with a test case reproducing the problem.
Activity
Show:
Guillaume ToisonSeptember 1, 2023 at 11:50 AM
Pull request with a test case illustrating the problem:
When a column used in an
Embeddable
is also reused in another class related by inheritance the initializer for seems to be trying to instanciate the embeddable, even though the corresponding row does not have a value.This results in an NPE when other columns of the embeddable have null values while the corresponding java attributes are non null.
In the below model, please note that the
weight
column is reused:The stacktrace of the error is:
I’ll try to make a PR with a test case reproducing the problem.