This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Spring Data Documents: Building typesafe queries / QueryDSL?

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.

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?