DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to.
DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued

this creates SQL for "relatedField" without the join to the other table.

Description

When we have a 1-1 relation and the FK is at the candidate side and the query is
SELECT FROM mydomain.MyClass WHERE relatedField instanceof "mydomain.MyOtherClass"
this creates SQL for "relatedField" without the join to the other table.

SVN trunk has been changed so that when evaluating the PrimaryExpression of an "instanceof" to pass in the operator on which it is used, and hence to force a join to the table of that PrimaryExpression. TCK test passes as a result.

Andy Jefferson added a comment - 14/Mar/10 09:52 AM SVN trunk has been changed so that when evaluating the PrimaryExpression of an "instanceof" to pass in the operator on which it is used, and hence to force a join to the table of that PrimaryExpression. TCK test passes as a result.
SVN branches/2.0 doesn't have this.