Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JPA/Hibernate stores should perform left outer joins when sorting. #920

Closed
aklish opened this issue Aug 15, 2019 · 0 comments
Closed

JPA/Hibernate stores should perform left outer joins when sorting. #920

aklish opened this issue Aug 15, 2019 · 0 comments
Assignees

Comments

@aklish
Copy link
Member

aklish commented Aug 15, 2019

Expected Behavior

If sorting on book.publisher.name, Elide currently uses JPQL's implicit join syntax (which performs inner joins):

HQL supports two forms of association joining: implicit and explicit.

The queries shown in the previous section all use the explicit form, that is, where the join keyword is explicitly used in the from clause. This is the recommended form.

The implicit form does not use the join keyword. Instead, the associations are "dereferenced" using dot-notation. implicit joins can appear in any of the HQL clauses. implicit join result in inner joins in the resulting SQL statement.

from Cat as cat where cat.mate.name like '%s%'

If the publisher is null, Elide will not return those records. Instead, Elide should return all records including those where one of the relationships is null.

Possible Solution

A possible solution is to modify the JPQL query to build explicit join clauses similar to how filter joins currently work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants