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

CRUD events exposed?

Apr 13, 2012 at 4:23 AM

Quick question: possible to hook into "BeforeInsert" or "AfterUpdate" kind of event, to get "old value" and/or "new value"? Thx for sharing!

Apr 13, 2012 at 9:17 AM

This is very implementation specific; you should do this by encapsulating a MongoRepository class in your own. It shouldn't take more than a few lines of code.

Apr 16, 2012 at 3:28 PM

I was thinking about some quick sample code with MongoRepository, ... something similar to . Thanks again!

Apr 17, 2012 at 8:05 AM

I still think this needs to be implemented by encapsulating a repository and adding the required functionality yourself. MongoRepository aims to be nothing more than a repository in it's simplest form and implementation. Any additional functionality should be "layered" on top of this.

Apr 17, 2012 at 11:56 PM

Will follow. Thanks Rob!