-
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
Complete Support for JPA Criteria API #2975
Comments
I don't know if all the methods make sense without JPA. It would be nice to have an SQL example for each. |
My personal opinion is that most of those would be covered by the The only use case for Criteria API is highly dynamic Search queries, where the user has a lot of optional filters to enable and API has a lot of nullable fields. We are actually supporting those via the static queries as well, they are just overly long. For example, optional filtering by subfields in a JSONB field
I'd be fine with Criteria API being a bit more limited - it is fine to push the developers towards the better-performing pre-compiled queries in most cases. |
Yeah, I want to support JSON accessors too in criteria. I think that is going to be possible with the methods too |
I came across this trying to see if some currently unsupported criteria features are on the docket for support, so if I may chime in with a more "bare-minimum" of what would get the Micronaut Criteria API fully viable at least in the use case I am facing: I believe the I don't have an example of how we are using this in a manner that fails readily available but I will try to provide one in the next few days or so. |
The latest version supports some of the methods mentioned:
|
Thank you! Is
|
Looks like it does! The new code (https://github.com/micronaut-projects/micronaut-data/blob/4.10.x/data-model/src/main/java/io/micronaut/data/model/jpa/criteria/impl/AbstractCriteriaBuilder.java#L1364) does not have Thank you a huge ton for doing it! |
Feature description
Micronaut implementation of JPA criteria API is lacking of essential features that makes it almost impracticable. For example, it currently not supporting a very simple feature like
upper
,concat
andfetch
operation, which I believe are required in most projects. Here are list of features that I considered as essential to be implemented,The text was updated successfully, but these errors were encountered: