Interesting … Spring provides integration with MongoDB through its spring-data project: http://www.springsource.org/spring-data/mongodb

Some very interesting ideas and concepts that they have implemented:

  • Spring configuration support using Java based @Configuration classes or an XML namespace for a Mongo driver instance and replica sets.
  • MongoTemplate helper class that increases productivity performing common Mongo operations. Includes integrated object mapping between documents and POJOs.
  • Annotation based mapping metadata but extensible to support other metadata formats
  • Persistence and mapping lifecycle events
  • Low-level mapping using MongoReader/MongoWriter abstractions
  • Java based Query, Criteria, and Update DSLs
  • Automatic implementation of Repository interfaces including support for custom finder methods.
  • Map-Reduce integration
  • JMX administration and monitoring

To read more, check out their reference documentation