-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Support entity filtering #171
Comments
I don't think we should be using Spring for this. @amatosg would you attach a JDL that shows the problem? |
I think the issue is with filtering not being yet supported? Here's the file:
|
It would be great to see filtering in all framework, whether it's quarkus, mn, helidon or anything else, the one implemented in main jhipster is brilliant. |
Thanks @agilob , that's definitely made my day! I would happily work on adding filtering for Micronaut, if no one else has started working on yet. As neither Micronaut, and AFAIK nor Quarkus supports any dynamic criteria builder out of box, apart from what is available in JPA/Hibernate, I can imagine the following implementation:
QueryDSL has ~3k and jOOQ has ~4k stars on Github, based on Google trends jOOQ is a bit more popular. |
I started work on the subject a few days ago (mainly thinking about solutions). |
I use JPA, but, IMHO it would be fair to also support other others |
With micronaut-spring-data-jpa, the necessary changes are surprisingly small. |
IMO starting with micronaut-spring-data-jpa is a good enough solution, until micronaut-data supports dynamic query criteria: micronaut-projects/micronaut-data#89 |
Have you encountered "org.hibernate.HibernateException: Could not obtain transaction-synchronized Session for current thread" with this implementation? This is where I've stopped working on this. |
Yes. Adding micronaut-spring dependency solves the issue. |
hi! any update on this issue? 😃 |
Any updates on this issue? Looks like a lot has been done. |
Overview of the issue
After I imported a JDL file, every repository was missing the
JpaSpecificationExecutor
dependencyReproduce the error
Related issues
None
Suggest a Fix
add this to the pom file
Add the import in the Repository generator
EDIT:
When using
JpaSpecificationExecutor
, the methodfindAll
inEntityQueryService
is expecting Spring'sPageable
, but is receiving Micronaut'sPageable
. The import won't fix the issue :(The text was updated successfully, but these errors were encountered: