This project has moved and is read-only. For the latest updates, please go here.

supporting transaction

Nov 18, 2014 at 11:02 PM
anyone has sample code to wrap CUD operations in a single transaction ?
Nov 19, 2014 at 12:29 AM
Transactions, the kind you're referring to, are a little 'hairy' in MongoDB. See the docs for information on this subject. You might also want to read this SO question for some discussion on the subject. Either way; MongoRepository as it currently is, is not intended to provide transactional support on top of MongoDB. It simply isn't the place for it. You can, however, implement your own (inherited) MongoRepository and provide transactional support in it as you wish. Although I'm guessing that isn't what you wanted to hear ;-)