title: Mongodb document versioning using spring data
body: <p>I am using Spring Data in my Java application to connect to MongoDb and have a requirement around versioning the documents (basically storing the history).
  It seems that its pretty straightforward in Ruby, if one uses <a href="http://mongoid.org/en/mongoid/docs/extras.html#versioning" rel="noreferrer">Mongoid</a></p>
  
  <p>I was wondering if spring data has something similar for Java. Or are you better of trying to implement your own. </p>