@ -113,12 +109,14 @@ public class MongoChangeSetPersister implements ChangeSetPersister<Object> {
@@ -113,12 +109,14 @@ public class MongoChangeSetPersister implements ChangeSetPersister<Object> {
@ -166,7 +166,7 @@ public class MappingMongoConverterParser implements BeanDefinitionParser {
@@ -166,7 +166,7 @@ public class MappingMongoConverterParser implements BeanDefinitionParser {
@ -195,7 +195,8 @@ public class MappingMongoConverterParser implements BeanDefinitionParser {
@@ -195,7 +195,8 @@ public class MappingMongoConverterParser implements BeanDefinitionParser {
@ -262,7 +263,7 @@ public class MappingMongoConverterParser implements BeanDefinitionParser {
@@ -262,7 +263,7 @@ public class MappingMongoConverterParser implements BeanDefinitionParser {
@ -197,24 +198,28 @@ public class MongoOptionsFactoryBean implements FactoryBean<MongoOptions>, Initi
@@ -197,24 +198,28 @@ public class MongoOptionsFactoryBean implements FactoryBean<MongoOptions>, Initi
@ -222,7 +227,7 @@ public class MongoOptionsFactoryBean implements FactoryBean<MongoOptions>, Initi
@@ -222,7 +227,7 @@ public class MongoOptionsFactoryBean implements FactoryBean<MongoOptions>, Initi
@ -99,7 +99,7 @@ public class GroupOperation implements FieldsExposingAggregationOperation {
@@ -99,7 +99,7 @@ public class GroupOperation implements FieldsExposingAggregationOperation {
@ -252,7 +252,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -252,7 +252,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@ -294,7 +294,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -294,7 +294,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
Assert.notNull(parameters,"Parameters must not be null!");
this.expression=expression;
this.params=parameters;
this.params=parameters.clone();
}
/*
@ -316,6 +316,9 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -316,6 +316,9 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@ -382,7 +385,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -382,7 +385,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
Assert.notNull(number,"Number must not be null!");
Assert.notNull(number,NUMBER_NOT_NULL);
returnproject("add",number);
}
@ -419,7 +422,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -419,7 +422,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@ -431,7 +434,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -431,7 +434,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
Assert.notNull(number,"Number must not be null!");
Assert.notNull(number,NUMBER_NOT_NULL);
returnproject("multiply",number);
}
@ -444,7 +447,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -444,7 +447,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@ -456,7 +459,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -456,7 +459,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
Assert.notNull(number,"Number must not be null!");
Assert.notNull(number,FIELD_REFERENCE_NOT_NULL);
Assert.isTrue(Math.abs(number.intValue())!=0,"Number must not be zero!");
returnproject("divide",number);
}
@ -470,7 +473,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -470,7 +473,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@ -483,7 +486,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -483,7 +486,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
Assert.notNull(number,"Number must not be null!");
Assert.notNull(number,NUMBER_NOT_NULL);
Assert.isTrue(Math.abs(number.intValue())!=0,"Number must not be zero!");
returnproject("mod",number);
}
@ -497,7 +500,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
@@ -497,7 +500,7 @@ public class ProjectionOperation implements FieldsExposingAggregationOperation {
log.debug("Analyzing class "+type+" for index information.");
if(LOGGER.isDebugEnabled()){
LOGGER.debug("Analyzing class "+type+" for index information.");
}
// Make sure indexes get created
@ -112,8 +112,8 @@ public class MongoPersistentEntityIndexCreator implements
@@ -112,8 +112,8 @@ public class MongoPersistentEntityIndexCreator implements
@ -133,8 +133,8 @@ public class MongoPersistentEntityIndexCreator implements
@@ -133,8 +133,8 @@ public class MongoPersistentEntityIndexCreator implements
// Names don't match, and sparse is not true. This situation will generate an error on the server.
if(log.isWarnEnabled()){
log.warn("The index name "+name+" doesn't match this property name: "+field.getName()
if(LOGGER.isWarnEnabled()){
LOGGER.warn("The index name "+name+" doesn't match this property name: "+field.getName()
+". Setting sparse=true on this index will prevent errors when inserting documents.");
}
}
@ -147,8 +147,8 @@ public class MongoPersistentEntityIndexCreator implements
@@ -147,8 +147,8 @@ public class MongoPersistentEntityIndexCreator implements
@ -165,8 +165,8 @@ public class MongoPersistentEntityIndexCreator implements
@@ -165,8 +165,8 @@ public class MongoPersistentEntityIndexCreator implements