-
Notifications
You must be signed in to change notification settings - Fork 198
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
AbstractCriteriaBuilder#function() not Supported #2693
Comments
@dstepanov is it possible that this ticket gets prioritized? My team is building a feature that will highly depend on this method. |
Sure, it should use Hibernate's criteria builder in this case. |
Do you have an example on how to use it? I am not able to get my Micronaut app configured to use it instead of the |
For now, you can inject |
Cool then! I prefer to wait for your release so that we don't pollute our code. Thanks a lot for your help! I will follow-up regarding the status of this within two weeks after the new year. Is that ok? |
Yes, looking to fix it in 4.3.0 micronaut-projects/micronaut-core#10137 |
Awesome! Thanks a lot! |
Hello @dstepanov, reaching out again regarding this. You told me you were looking to fix it in 4.3.0 released today. Still, I see that the method still throws an Thank you, and best regards 🙏 |
If you use Hibernate it should use the criteria builder from it. |
Not sure if that fix is released yet, maybe can try with the 4.4.1-SNAPSHOT? |
My repository extends the |
Does anybody have a working example of using a different criteria builder? We are not using Hibernate and trying to work with JSONB in postgresql. So I either need to figure out how to use custom operator Since we have no Hibernate, the I would very much appreciate a way to call a custom operator or a function. Please help. Trying to add
|
I will take a look to support custom functions |
This is pretty bad, even such simple operation like concat, coalesce, lower and upper aren't supported yet by the |
I'm working on a query builder rewrite that should enable the quick addition of more criteria features. Please create an additional issue of what operations are needed to assess what is wanted. |
Sure @dstepanov I've opened a feature request issue in #2975. |
Already supported in the latest version |
Feature description
I would like to be able to build queries with JSON functions supported by my DB with Micronaut's
QueryBuilder
.My repository implements the
CoroutineJpaSpecificationExecutor
and is configured to use theJpaQueryBuilder
class, as shown in the code snippet below.To do this, I need the
function()
method which is obviously not supported yet as shown in the code snippet below taken from theAbstractQueryBuilder
class.If any additional info is required, please reach out to me on [email protected]. Thanks!
The text was updated successfully, but these errors were encountered: