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

Re-open method SqlQuery#Q from(Expression<?> arg) as public #360

Closed
ulk200 opened this issue Mar 28, 2024 · 1 comment
Closed

Re-open method SqlQuery#Q from(Expression<?> arg) as public #360

ulk200 opened this issue Mar 28, 2024 · 1 comment

Comments

@ulk200
Copy link
Contributor

ulk200 commented Mar 28, 2024

I used to be able to set FROM with basic "Expression<?>" objects.

In ProjectableSQLQuery

public Q from(Expression<?> arg) {
  return queryMixin.from(arg);
}

But with the fix from issue #251 this signature has been made protected.
My main usage is calling it with Template expressions with Oracle's procedure call, generating an sql like SELECT ... FROM TABLE(PROCEDURE(...)) a by passing Expression.template(Tuple.class, "TABLE(PROCEDURE(...)") to the method.

Maybe i'm missing something and this can translated to a RelationalPath ? (because is see that from(RelationalPath<?> arg) is supposed to be the new way of setting the from expression)

I'm using QueryDSL SQL without JPA BTW

@velo
Copy link
Member

velo commented Apr 9, 2024

Feel free to send a PR, I will review

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