Hello everyone
I'm currently using mongoTemplate with queries like this one:
I'd really like to have a safe way to create such queries, without having to use strings to identify properties (like "dateTime"). I saw that querydsl allows to generate "query types" of annotated entities to avoid such string magic.Code:Query q= new Query(where("parentId").is(parentId).and("dateTime").gte(start).lt(end));
Are there similar concepts within spring-data-document? Or is there a way to use the query types or even the queries of querydsl with mongoTemplate?
Best regards,
James


Reply With Quote