DATADOC-109 - Introduced MappingContext implementation for SimpleMongoConverter.

Adapted changes in Spring Data Commons. Adapted test cases accordingly. Introduced SimpleMongoMappingContext that that reflects the meta-model assumptions in SimpleMongoConverter. Adapted repository factories accordingly as we can now assume that there is a MappingContext available always.

Refactored QueryMapper to be stateless so that we don't need to recreate instances of it. Added unit tests to verify id property to key mapping and type conversion to ObjectId.

Polished MappingTests to simply drop the database after all test were finished to make sure it starts with a clean state on a potential next run.
This commit is contained in:
Oliver Gierke
2011-04-27 18:28:07 +02:00
parent 321948d4a2
commit ef2b0235c7
38 changed files with 1422 additions and 511 deletions

View File

@@ -5,7 +5,7 @@ Changes in version 1.0.0.RC1 MongoDB
-------------------------------------------------
General
*
* Introducted MappingContext implementatio for SimpleMongoConverter (DATADOC-109)
Changes in version 1.0.0.M2 MongoDB (2011-04-09)
------------------------------------------------