rzo1 opened a new pull request, #189: URL: https://github.com/apache/openjpa/pull/189
The TREAT discriminator filter only matched the exact treated class (`disc = value`), so `TREAT(x AS Middle)` dropped instances of Middle's subclasses. It now reuses the discriminator's class conditions, like `InstanceofExpression`, which emit `IN (...)` over the treated class and its subclasses. Note that for `LEFT JOIN TREAT(...)` rows without a related entity are now kept (`disc IS NULL OR ...`); `TestTreatSubclassDiscriminator` covers a three-level single-table hierarchy. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
