Closed logicatmidod closed 3 years ago
Hi Looking at all the issues I faced Also raised issue https://github.com/querydsl/querydsl/issues/2697
looking for alternative option is there a way to support com.hazelcast.query.Predicate directly via spring data repository?
Thanks
You can use @Query
as described here: https://github.com/hazelcast/spring-data-hazelcast#query-support
You can use
@Query
as described here: https://github.com/hazelcast/spring-data-hazelcast#query-support
What I am trying to do is something like this : https://www.denismigol.com/posts/325/spring-data-hazelcast-querydsl-demo As the issue with query is lets say I am displaying a table of users on UI and allowing people to put filter on the tables dynamicaly. A user may choose to filter the tables either with 1 column or 2 columns or n columns if I use https://github.com/hazelcast/spring-data-hazelcast#query-support to support dynamic query for n columns I will have to create n!+1 methods i.e. 1 field = 1!+1 = 1 2 fields = 2!+1 = 3 3 fields = 3!+1 = 7 . . 6 fields = 6! +1 = 721 methods
Does not seem like a good approach and tomorrow if new field is added to dynamic filter list it means hell lot of changes.
Firstly, looks like the described error is related to QueryDSL and not Spring Data Hazelcast
looking for an alternative option is there a way to support com.hazelcast.query.Predicate directly via spring data repository?
Not really. There's no direct integration between Spring Data and Hazelcast's Predicate
, but you could just use them directly on the desired data structure without relying on Spring Data Hazelcast which is dedicated to solving common scenarios.
Also, the next release of Hazelcast will feature production-ready SQL support which will make this task much easier.
Error running dynamic dsl query