Deprecated API
Contents
-
Deprecated Interfaces
-
Deprecated ClassesClassDescriptionsince 2.0, use
MongoCustomConversions.since 2.2, useAuditingEntityCallback.since 2.2. Thegroupcommand has been removed in MongoDB Server 4.2.0.since 2.2. Thegroupcommand has been removed in MongoDB Server 4.2.0.since 3.0, useMongoDatabaseFactorySupportinstead.since 3.0 - UseMongoClientSettingsFactoryBeaninstead.since 2.2. Theevalcommand has been removed without replacement in MongoDB Server 4.2.0.since 2.2. Theevalcommand has been removed without replacement in MongoDB Server 4.2.0.since 3.0, useSimpleMongoClientDatabaseFactoryinstead.since 3.3, use Querydsl'sAbstractMongodbQuerydirectly. This class is deprecated for removal with the next major release.since 3.3, use Querydsl'sAnyEmbeddedBuilderdirectly. This class is deprecated for removal with the next major release.since 2.0. Querydsl execution is now linked via composable repositories and no longer requires to be a subclass ofSimpleMongoRepository. UseQuerydslMongoPredicateExecutorfor standalone QuerydslPredicateexecution.
-
Deprecated Enum ClassesEnum ClassDescriptionsince 1.10. Please use
ArithmeticOperatorsandComparisonOperatorsinstead.since 2.1. No longer supported by MongoDB as of server version 3.0.
-
Deprecated MethodsMethodDescriptionuse
MongoConfigurationSupport.getMappingBasePackages()instead.prepare to get this one removed in favor ofAggregation.skip(long).since 2.2 in favor ofAggregationOperation.toPipelineStages(AggregationOperationContext).since 3.2, useDateOperators.DateParts.millisecond(Object)instead.since 3.2,useDateOperators.DateParts.millisecondOf(String)instead.since 3.2, useDateOperators.DateParts.millisecondOf(AggregationExpression)instead.since 3.2. UseMappingMongoConverter.readMap(ConversionContext, Bson, TypeInformation)instead.since 2.1. No longer supported by MongoDB as of server version 3.0.since 2.1. No longer supported by MongoDB as of server version 3.0.since 1.7.since 1.7since 3.0 - UseMapReduceOptions.actionInline()instead.since 3.0 - useMapReduceOptions.actionMerge()instead.since 3.0 - useMapReduceOptions.actionReduce()instead.since 3.0 - UseMapReduceOptions.actionReplace()instead.since 2.2. Theevalcommand has been removed in MongoDB Server 4.2.0. Use Aggregations withAggregation.geoNear(NearQuery, String)instead.since 2.2. Theevalcommand has been removed in MongoDB Server 4.2.0. Use Aggregations withAggregation.geoNear(NearQuery, String)instead.since 2.2. Thegroupcommand has been removed in MongoDB Server 4.2.0.
Please useMongoOperations.aggregate(TypedAggregation, String, Class)with aGroupOperationinstead.since 2.2. Thegroupcommand has been removed in MongoDB Server 4.2.0.
Please useMongoOperations.aggregate(TypedAggregation, String, Class)with aGroupOperationandMatchOperationinstead.since 2.2. Theevalcommand has been removed without replacement in MongoDB Server 4.2.0.since 2.1 in favor ofMongoTemplate.convertToDocument(CollectionOptions, Class).since 3.2. CallMongoTemplate.ensureNotCollectionLike(Object)instead.since 3.1.4. UseMongoTemplate.getMongoDatabaseFactory()instead.since 2.1. UseMeta.setMaxTime(Duration)instead.since 2.2. Please useNearQuery.limit(long)instead.don't call this method as the restricted type handling will undergo some significant changes going forward.since 2.1. UseQuery.maxTime(Duration)instead.since 3.0.2, useQuery.allowSecondaryReads().as of MongoDB 2.4. Removed in MongoDB 3.6. Use$push $eachinstead.since 2.2. Theevalcommand has been removed in MongoDB Server 4.2.0. Use Aggregations withAggregation.geoNear(NearQuery, String)instead.since 2.2. Theevalcommand has been removed in MongoDB Server 4.2.0. Use Aggregations withAggregation.geoNear(NearQuery, String)instead.since 2.2. Use@TransactionalorTransactionalOperator.since 2.2. Use@TransactionalorTransactionalOperator.since 3.2. CallReactiveMongoTemplate.ensureNotCollectionLike(Object)instead.since 1.10. Please useMethodReferenceNode.getMethodReference().since 3.0. UseMongoDatabaseFactory.getMongoDatabase()instead.since 3.0. UseMongoDatabaseFactory.getMongoDatabase(String)instead.since 2.1, which requires MongoDB Java driver 3.8. Returns true by default.since 2.1, which requires MongoDB Java driver 3.8. Returns true by default.
-
Deprecated ConstructorsConstructorDescriptionsince 2.0 please use
CollectionOptions.empty()as entry point.use the constructor taking aDbRefResolverinstead.since 2.1. Please useDefaultIndexOperations(MongoOperations, String, Class).since 2.1. Please useDefaultIndexOperations(MongoOperations, String, Class).
-
Deprecated Enum Constants
-
Deprecated Annotation Interface ElementsAnnotation Interface ElementDescriptionsince 2.1. No longer supported by MongoDB as of server version 3.0.since 2.1. No longer supported by MongoDB as of server version 3.0.
evalcommand has been removed without replacement in MongoDB Server 4.2.0.