hibernate/hibernate-ogm — pull request #67 by emmanuelbernard (2012-04-06 14:36:36+00:00)
Title: Ogm 143 version 2 with findAndModify support

Hi @gscheibel @sanne

I have reimplemented the nextValue for mongodb using what we discussed and documented at

I was able to make all tests under /id/ pass which is the main user of nextValue. I have put a few FIXME but the implementation is getting very close to what we want and could even go with this one initially.

I was able to remove a few unnecessary changes made by @gscheibel :

- Exclude of the /id/ tests
- Add of the suspicious flush() in the test

I have left the association exclusion from but that should not strictly be part of the pull request. But with this exclusion all tests pass :)

What do you think?