rsql-jpa-specification
rsql-jpa-specification copied to clipboard
RSQLCustom Predicate with QueryDSL
Any way to create a custom predicate using QueryDSL instead JPA?
https://github.com/perplexhub/rsql-jpa-specification#querydsl-predicate-booleanexpression
Sorry, I mean with custom operator
Any update about this?
I think it is possible. Could you try to copy the customPredicates logic in RSQLJPAPredicateConverter to RSQLQueryDslPredicateConverter? Thanks.
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));
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 .
It is possible to achieve by copying the implementatiom to 5.x branch