Closed clifford-grech closed 1 year ago
Minor update on this issue.
After further troubleshooting, I realized that the problem only happens when I make use of the @NotFound(action = NotFoundAction.IGNORE)
annotation in the manyToOne relationship definition.
@clifford-grech This error is raised due to a broken FK relationship when detected by Hibernate. The best fix is to fix the underlying data inconsistency. Otherwise, you can use ignore action to suppress the problem. This is not a bug in the library code.
Describe the bug @igdianov, since I've updated to the latest release of this library (v1.0.0), which is making use of hibernate-core 6.1.7, when attempting to request a query that triggers a manyToOne join and attempt to filter result with the parent table, it ends up resulting in the following error:
To Reproduce Steps to reproduce the behavior:
Expected behavior All records in dummyChild which are linked to any record in dummyParent with recordDate = 2021-08-04 should be returned and each record should show both the dummyChild's ID and the dummyParent's ID
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
When is it failing? When navigablePath is equal to "com.acme.dl.data.api.models.dummyChild(597986201461200).dummyParent(597986201487300)" and tableExpressoin is "dummy_child"
N.B. - This issue was reported to Hibernate here and resolved with hibernate-core v6.2.0.CR3