MongoDB Type Safe Queries With QueryDSL and Spring
Short intro to using Spring and QueryDSL for getting type-safe MongoDB queries:
The way QueryDSL works is by generating query classes based upon your persistence domain model. QueryDSL has a simple maven plugin that scans for appropriate annotations and generates the query classes for you.
If you’re looking for MongoDB query DSLs, take a look at Foursquare’s Rogue: a Scala-based query DSL and how to create a Clojure query DSL.
Original title and link: MongoDB Type Safe Queries With QueryDSL and Spring (©myNoSQL)
via: http://cjharris5.blogspot.com/2011/09/spring-mongodb-type-safe-queries.html