Attempting to use rsql-parser with Mongodb (minimal use of Spring). Have
q-builders-1.6
rsql-parser-2.1.0
spring-data-mongodb-1.10.4.RELEASE
That combination lacks QueryConversionPipeline and my code (below) will not compile.
Using
q-builders-1.6
rest-query-engine-0.7.1
spring-data-mongodb-1.10.4.RELEASE
there is the problem that
com.github.rutledgepaulv.rqe.pipes.QueryConversionPipeline (from restquery-engine-0.7.1)
wants
cz.jirutka.rsql.parser.ast.RSQLVisitor
but that class is in another package:
com.github.rutledgepaulv.qbuilders.visitors (from q-builders-1.6)
I have the impression that there has been some refactoring and the various jars to do not play together.
My goal is to be able to turn arbitrary HTTP queries into MongoDB queries. I would prefer to not use Spring, or to use Spring minimally.
My code looks like
QueryConversionPipeline pipeline = QueryConversionPipeline.defaultPipeline();
Condition<GeneralQueryBuilder> condition = pipeline.apply(myQueryString, MyClass.class);
Criteria crit = condition.query(new MongoVisitor());
FindIterable<Document> it = myMongo.find((BasicDBObject)crit.getCriteriaObject());
In principal, from what I can tell reading the documentation and looking at the code, this should work, but it won't run due to the above-mentioned packaging issues.
So
How to get the above to work?
Is there a way to accomplish the same ends without using spring-data-mongodb?
Thanks!
Jim
P.S. I also posted this query to rsql-parser project.
Attempting to use rsql-parser with Mongodb (minimal use of Spring). Have
q-builders-1.6
rsql-parser-2.1.0
spring-data-mongodb-1.10.4.RELEASE
That combination lacks QueryConversionPipeline and my code (below) will not compile.
Using
q-builders-1.6
rest-query-engine-0.7.1
spring-data-mongodb-1.10.4.RELEASE
there is the problem that
com.github.rutledgepaulv.rqe.pipes.QueryConversionPipeline (from restquery-engine-0.7.1)
wants
cz.jirutka.rsql.parser.ast.RSQLVisitor
but that class is in another package:
com.github.rutledgepaulv.qbuilders.visitors (from q-builders-1.6)
I have the impression that there has been some refactoring and the various jars to do not play together.
My goal is to be able to turn arbitrary HTTP queries into MongoDB queries. I would prefer to not use Spring, or to use Spring minimally.
My code looks like
In principal, from what I can tell reading the documentation and looking at the code, this should work, but it won't run due to the above-mentioned packaging issues.
So
Thanks!
Jim
P.S. I also posted this query to rsql-parser project.