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

RSQLCustom Predicate with QueryDSL #98

Open
MiguelAngelLV opened this issue Mar 14, 2023 · 7 comments
Open

RSQLCustom Predicate with QueryDSL #98

MiguelAngelLV opened this issue Mar 14, 2023 · 7 comments

Comments

@MiguelAngelLV
Copy link

Any way to create a custom predicate using QueryDSL instead JPA?

@MiguelAngelLV
Copy link
Author

Sorry, I mean with custom operator

@MiguelAngelLV
Copy link
Author

Any update about this?

@perplexhub
Copy link
Owner

I think it is possible. Could you try to copy the customPredicates logic in RSQLJPAPredicateConverter to RSQLQueryDslPredicateConverter? Thanks.

@fghpdf
Copy link

fghpdf commented Dec 1, 2023

I met the same question, could I add a custom operator like this (to support PostgreSQL hstore):

QuerySupport querySupport = QuerySupport.builder().rsqlQuery("attr @> hstore('id=>1')").build();
return userRepository.findAll(RSQLJPASupport.toSpecification(querySupport));

@MichaelKoch11
Copy link

Is there still the idea to support it in version io.github.perplexhub:rsql-querydsl-spring-boot-starter:5.1.1, to be useable in Spring 2.x.
The method is
RSQLQueryDslSupport.toPredicate .

@perplexhub
Copy link
Owner

It is possible to achieve by copying the implementatiom to 5.x branch

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

4 participants