-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
HHH-16648 Documentation for implementing custom JPQL/HQL functions #6605
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
Conversation
Thanks for your pull request! This pull request does not follow the contribution rules. Could you have a look? ❌ All commit messages should start with a JIRA issue key matching pattern
› This message was automatically generated. |
9db8b06
to
d67a998
Compare
I would appreciate feedback on the status of this pull request. Is the code being reviewed or rejected? |
I'm sorry this takes so long. Your PR is very much appreciated and we will look into it. We are currently busy with other things. I added your PR to my todo list, so be assured that I will review it eventually. |
Thank you very much! |
Please let me know what needs to be fixed or added in my code for you to accept my pull request. |
c1ae9de
to
680037d
Compare
680037d
to
adc1885
Compare
@Override | ||
public void render( | ||
SqlAppender sqlAppender, | ||
List<? extends SqlAstNode> sqlAstArguments, | ||
Predicate filter, | ||
SqlAstTranslator<?> translator) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm really not sure how much of an open invitation we really want to be giving to users to start depending on some of these SPIs in their application programs.
Yes, it's true that org.hibernate.sql.ast
and org.hibernate.sql.ast.tree
are technically SPIs, but they're both marked @Incubating
for the very good reason that:
- they're an extremely broad SPI surface, and
- not really stabilized in any meaningful sense.
So I would leave this undocumented for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's close this and the Jira then.
I didn't find an issue about adding a proper API to define custom functions though. Should I create one, or is this not a feature we want to expose beyond an incubating SPI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't find an issue about adding a proper API to define custom functions though.
I did have something at some stage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I create one
Yeah go ahead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The intent was always to allow users to contribute custom function definitions. It's just a question of getting the SPI correct.
Closing in favor of https://hibernate.atlassian.net/browse/HHH-19839 as mentioned above: we would need a more focused SPI before encouraging its use in applications. |
Also, thank you for your contribution @FelixDes . We'll try to reuse this documentation when working on HHH-19839. If you're interested in working on that and debating what's the best way to expose it, please reach out on Zulip: https://hibernate.zulipchat.com/#narrow/channel/132094-hibernate-orm-dev |
I propose a technology for creating custom JPQL/HQL functions (code and documentation).
https://hibernate.atlassian.net/browse/HHH-16648