DATADOC-117 removed defaultCollection on MongoTemplate/Operations; changed getDefaultCollectionName to getCollectionName(Class clazz) to determine collection name used for specific class; added a class parameter where necessary

This commit is contained in:
Thomas Risberg
2011-05-04 18:34:15 -04:00
parent 0c9ee0eacd
commit e4fdabba1d
16 changed files with 146 additions and 216 deletions

View File

@@ -28,7 +28,6 @@
<bean id="mongoTemplate" class="org.springframework.data.document.mongodb.MongoTemplate">
<constructor-arg name="mongo" ref="mongo"/>
<constructor-arg name="databaseName" value="test"/>
<constructor-arg name="defaultCollectionName" value="cross-store"/>
<constructor-arg name="mongoConverter" ref="mappingConverter"/>
</bean>