diff --git a/pom.xml b/pom.xml index 6db92a46d4..7d73b4d2d4 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.springframework.data spring-data-mongodb-parent - 2.3.0.BUILD-SNAPSHOT + 3.0.0.BUILD-SNAPSHOT pom Spring Data MongoDB diff --git a/spring-data-mongodb-benchmarks/pom.xml b/spring-data-mongodb-benchmarks/pom.xml index c4766040c1..b5dba6f53e 100644 --- a/spring-data-mongodb-benchmarks/pom.xml +++ b/spring-data-mongodb-benchmarks/pom.xml @@ -7,7 +7,7 @@ org.springframework.data spring-data-mongodb-parent - 2.3.0.BUILD-SNAPSHOT + 3.0.0.BUILD-SNAPSHOT ../pom.xml diff --git a/spring-data-mongodb-distribution/pom.xml b/spring-data-mongodb-distribution/pom.xml index ed39c63e76..dbb3854812 100644 --- a/spring-data-mongodb-distribution/pom.xml +++ b/spring-data-mongodb-distribution/pom.xml @@ -14,7 +14,7 @@ org.springframework.data spring-data-mongodb-parent - 2.3.0.BUILD-SNAPSHOT + 3.0.0.BUILD-SNAPSHOT ../pom.xml diff --git a/spring-data-mongodb/pom.xml b/spring-data-mongodb/pom.xml index 25cf02b5d5..95beb40e3c 100644 --- a/spring-data-mongodb/pom.xml +++ b/spring-data-mongodb/pom.xml @@ -11,7 +11,7 @@ org.springframework.data spring-data-mongodb-parent - 2.3.0.BUILD-SNAPSHOT + 3.0.0.BUILD-SNAPSHOT ../pom.xml diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/CountQuery.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/CountQuery.java index ee2c7368a8..66b6a37b85 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/CountQuery.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/CountQuery.java @@ -34,7 +34,7 @@ * * @author Christoph Strobl * @author Mark Paluch - * @since 2.3 + * @since 3.0 */ class CountQuery { diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ExecutableUpdateOperation.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ExecutableUpdateOperation.java index 414a1b7dc2..7155551b86 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ExecutableUpdateOperation.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ExecutableUpdateOperation.java @@ -158,7 +158,7 @@ interface UpdateWithUpdate { * @param update must not be {@literal null}. * @return new instance of {@link TerminatingUpdate}. * @throws IllegalArgumentException if update is {@literal null}. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoOperations.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoOperations.java index a93670cd03..635ec96d94 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoOperations.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoOperations.java @@ -888,7 +888,7 @@ default List findDistinct(Query query, String field, String collection, C * @param update the {@link UpdateDefinition} to apply on matching documents. Must not be {@literal null}. * @param entityClass the parametrized type. Must not be {@literal null}. * @return the converted object that was updated before it was updated or {@literal null}, if not found. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -905,7 +905,7 @@ default List findDistinct(Query query, String field, String collection, C * @param entityClass the parametrized type. Must not be {@literal null}. * @param collectionName the collection to query. Must not be {@literal null}. * @return the converted object that was updated before it was updated or {@literal null}, if not found. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -925,7 +925,7 @@ default List findDistinct(Query query, String field, String collection, C * @return the converted object that was updated or {@literal null}, if not found. Depending on the value of * {@link FindAndModifyOptions#isReturnNew()} this will either be the object as it was before the update or as * it is after the update. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -946,7 +946,7 @@ default List findDistinct(Query query, String field, String collection, C * @return the converted object that was updated or {@literal null}, if not found. Depending on the value of * {@link FindAndModifyOptions#isReturnNew()} this will either be the object as it was before the update or as * it is after the update. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -1308,7 +1308,7 @@ T findAndReplace(Query query, S replacement, FindAndReplaceOptions option * the existing object. Must not be {@literal null}. * @param entityClass class that determines the collection to use. Must not be {@literal null}. * @return the {@link UpdateResult} which lets you access the results of the previous write. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -1329,7 +1329,7 @@ T findAndReplace(Query query, S replacement, FindAndReplaceOptions option * the existing object. Must not be {@literal null}. * @param collectionName name of the collection to update the object in. * @return the {@link UpdateResult} which lets you access the results of the previous write. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -1346,7 +1346,7 @@ T findAndReplace(Query query, S replacement, FindAndReplaceOptions option * @param entityClass class of the pojo to be operated on. Must not be {@literal null}. * @param collectionName name of the collection to update the object in. Must not be {@literal null}. * @return the {@link UpdateResult} which lets you access the results of the previous write. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -1362,7 +1362,7 @@ T findAndReplace(Query query, S replacement, FindAndReplaceOptions option * the existing. Must not be {@literal null}. * @param entityClass class that determines the collection to use. * @return the {@link UpdateResult} which lets you access the results of the previous write. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -1384,7 +1384,7 @@ T findAndReplace(Query query, S replacement, FindAndReplaceOptions option * the existing. Must not be {@literal null}. * @param collectionName name of the collection to update the object in. Must not be {@literal null}. * @return the {@link UpdateResult} which lets you access the results of the previous write. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -1401,7 +1401,7 @@ T findAndReplace(Query query, S replacement, FindAndReplaceOptions option * @param entityClass class of the pojo to be operated on. Must not be {@literal null}. * @param collectionName name of the collection to update the object in. Must not be {@literal null}. * @return the {@link UpdateResult} which lets you access the results of the previous write. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -1417,7 +1417,7 @@ T findAndReplace(Query query, S replacement, FindAndReplaceOptions option * the existing. Must not be {@literal null}. * @param entityClass class of the pojo to be operated on. Must not be {@literal null}. * @return the {@link UpdateResult} which lets you access the results of the previous write. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -1436,7 +1436,7 @@ T findAndReplace(Query query, S replacement, FindAndReplaceOptions option * the existing. Must not be {@literal null}. * @param collectionName name of the collection to update the object in. Must not be {@literal null}. * @return the {@link UpdateResult} which lets you access the results of the previous write. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -1453,7 +1453,7 @@ T findAndReplace(Query query, S replacement, FindAndReplaceOptions option * @param entityClass class of the pojo to be operated on. Must not be {@literal null}. * @param collectionName name of the collection to update the object in. Must not be {@literal null}. * @return the {@link UpdateResult} which lets you access the results of the previous write. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoOperations.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoOperations.java index 56e5b088b2..1eb5df3d7b 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoOperations.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoOperations.java @@ -683,7 +683,7 @@ default Flux findDistinct(Query query, String field, String collection, C * @param update the {@link UpdateDefinition} to apply on matching documents. Must not be {@literal null}. * @param entityClass the parametrized type. Must not be {@literal null}. * @return the converted object that was updated before it was updated. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -699,7 +699,7 @@ default Flux findDistinct(Query query, String field, String collection, C * @param entityClass the parametrized type. Must not be {@literal null}. * @param collectionName the collection to query. Must not be {@literal null}. * @return the converted object that was updated before it was updated. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -717,7 +717,7 @@ default Flux findDistinct(Query query, String field, String collection, C * @param entityClass the parametrized type. * @return the converted object that was updated. Depending on the value of {@link FindAndModifyOptions#isReturnNew()} * this will either be the object as it was before the update or as it is after the update. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -736,7 +736,7 @@ default Flux findDistinct(Query query, String field, String collection, C * @param collectionName the collection to query. Must not be {@literal null}. * @return the converted object that was updated. Depending on the value of {@link FindAndModifyOptions#isReturnNew()} * this will either be the object as it was before the update or as it is after the update. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -1171,7 +1171,7 @@ Mono findAndReplace(Query query, S replacement, FindAndReplaceOptions * the existing object. Must not be {@literal null}. * @param entityClass class that determines the collection to use. Must not be {@literal null}. * @return the {@link UpdateResult} which lets you access the results of the previous write. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -1190,7 +1190,7 @@ Mono findAndReplace(Query query, S replacement, FindAndReplaceOptions * the existing object. Must not be {@literal null}. * @param collectionName name of the collection to update the object in. * @return the {@link UpdateResult} which lets you access the results of the previous write. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -1207,7 +1207,7 @@ Mono findAndReplace(Query query, S replacement, FindAndReplaceOptions * @param entityClass class of the pojo to be operated on. Must not be {@literal null}. * @param collectionName name of the collection to update the object in. Must not be {@literal null}. * @return the {@link UpdateResult} which lets you access the results of the previous write. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -1225,7 +1225,7 @@ Mono findAndReplace(Query query, S replacement, FindAndReplaceOptions * the existing. Must not be {@literal null}. * @param entityClass class that determines the collection to use. * @return the {@link UpdateResult} which lets you access the results of the previous write. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -1246,7 +1246,7 @@ Mono findAndReplace(Query query, S replacement, FindAndReplaceOptions * the existing. Must not be {@literal null}. * @param collectionName name of the collection to update the object in. Must not be {@literal null}. * @return the {@link UpdateResult} which lets you access the results of the previous write. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -1263,7 +1263,7 @@ Mono findAndReplace(Query query, S replacement, FindAndReplaceOptions * @param entityClass class of the pojo to be operated on. Must not be {@literal null}. * @param collectionName name of the collection to update the object in. Must not be {@literal null}. * @return the {@link UpdateResult} which lets you access the results of the previous write. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -1279,7 +1279,7 @@ Mono findAndReplace(Query query, S replacement, FindAndReplaceOptions * the existing. Must not be {@literal null}. * @param entityClass class of the pojo to be operated on. Must not be {@literal null}. * @return the {@link UpdateResult} which lets you access the results of the previous write. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -1298,7 +1298,7 @@ Mono findAndReplace(Query query, S replacement, FindAndReplaceOptions * the existing. Must not be {@literal null}. * @param collectionName name of the collection to update the object in. Must not be {@literal null}. * @return the {@link UpdateResult} which lets you access the results of the previous write. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ @@ -1315,7 +1315,7 @@ Mono findAndReplace(Query query, S replacement, FindAndReplaceOptions * @param entityClass class of the pojo to be operated on. Must not be {@literal null}. * @param collectionName name of the collection to update the object in. Must not be {@literal null}. * @return the {@link UpdateResult} which lets you access the results of the previous write. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveUpdateOperation.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveUpdateOperation.java index 6c7e6b6252..0bb6d23c00 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveUpdateOperation.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveUpdateOperation.java @@ -125,7 +125,7 @@ interface UpdateWithUpdate { * @param update must not be {@literal null}. * @return new instance of {@link TerminatingUpdate}. Never {@literal null}. * @throws IllegalArgumentException if update is {@literal null}. - * @since 2.3 + * @since 3.0 * @see Update * @see AggregationUpdate */ diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/Aggregation.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/Aggregation.java index 7229c8339a..c7e8c1b2cb 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/Aggregation.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/Aggregation.java @@ -120,7 +120,7 @@ public static Aggregation newAggregation(AggregationOperation... operations) { * * @param operations can be {@literal empty} but must not be {@literal null}. * @return new instance of {@link AggregationUpdate}. - * @since 2.3 + * @since 3.0 */ public static AggregationUpdate newUpdate(AggregationOperation... operations) { return AggregationUpdate.from(Arrays.asList(operations)); diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/AggregationOptions.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/AggregationOptions.java index 381fa15ab3..39ad590d99 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/AggregationOptions.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/AggregationOptions.java @@ -215,7 +215,7 @@ public Optional getComment() { /** * @return the time limit for processing. {@link Duration#ZERO} is used for the default unbounded behavior. - * @since 2.3 + * @since 3.0 */ public Duration getMaxTime() { return maxTime; @@ -279,7 +279,7 @@ public Document toDocument() { /** * @return - * @since 2.3 + * @since 3.0 */ public boolean hasExecutionTimeLimit() { return !maxTime.isZero() && !maxTime.isNegative(); @@ -393,7 +393,7 @@ public Builder comment(@Nullable String comment) { * @param maxTime {@link Duration#ZERO} is used for the default unbounded behavior. {@link Duration#isNegative() * Negative} values will be ignored. * @return this. - * @sinve 2.3 + * @since 3.0 */ public Builder maxTime(@Nullable Duration maxTime) { diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/AggregationUpdate.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/AggregationUpdate.java index e8201e4ba4..5866f2a1eb 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/AggregationUpdate.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/AggregationUpdate.java @@ -74,7 +74,7 @@ * @see MongoDB * Reference Documentation - * @since 2.3 + * @since 3.0 */ public class AggregationUpdate extends Aggregation implements UpdateDefinition { diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ArithmeticOperators.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ArithmeticOperators.java index fa21ccb955..9cda3ffcda 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ArithmeticOperators.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ArithmeticOperators.java @@ -516,7 +516,7 @@ public StdDevSamp stdDevSamp() { * place. * * @return new instance of {@link Round}. - * @since 2.3 + * @since 3.0 */ public Round round() { return usesFieldRef() ? Round.roundValueOf(fieldReference) : Round.roundValueOf(expression); @@ -526,7 +526,7 @@ public Round round() { * Creates new {@link AggregationExpression} that rounds a number to a specified decimal place. * * @return new instance of {@link Round}. - * @since 2.3 + * @since 3.0 */ public Round roundToPlace(int place) { return round().place(place); @@ -1455,7 +1455,7 @@ public static Trunc truncValueOf(Number value) { * decimal. * * - * @since 2.3 + * @since 3.0 */ public static class Round extends AbstractAggregationExpression { diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/RelaxedTypeBasedAggregationOperationContext.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/RelaxedTypeBasedAggregationOperationContext.java index af81ca3de9..2c53c275a7 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/RelaxedTypeBasedAggregationOperationContext.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/RelaxedTypeBasedAggregationOperationContext.java @@ -29,7 +29,7 @@ * {@link InvalidPersistentPropertyPath} exceptions when resolving mapped field names. * * @author Christoph Strobl - * @since 2.3 + * @since 3.0 */ public class RelaxedTypeBasedAggregationOperationContext extends TypeBasedAggregationOperationContext { diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ReplaceRootOperation.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ReplaceRootOperation.java index 7eed7a0683..0bf5341c37 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ReplaceRootOperation.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ReplaceRootOperation.java @@ -98,7 +98,7 @@ public ExposedFields getFields() { * Obtain the {@link Replacement}. * * @return never {@literal null}. - * @since 2.3 + * @since 3.0 */ protected Replacement getReplacement() { return replacement; diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ReplaceWithOperation.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ReplaceWithOperation.java index e341cf4ecf..60bdcdc3ae 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ReplaceWithOperation.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/ReplaceWithOperation.java @@ -27,7 +27,7 @@ * possible to promote an embedded document to the top-level or specify a new document. * * @author Christoph Strobl - * @since 2.3 + * @since 3.0 * @see MongoDB Aggregation * Framework: $replaceWith */ diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/SetOperation.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/SetOperation.java index 61657450ae..d7b97297ef 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/SetOperation.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/SetOperation.java @@ -37,7 +37,7 @@ * * * @author Christoph Strobl - * @since 2.3 + * @since 3.0 * @see MongoDB Aggregation Framework: * $set */ @@ -180,7 +180,7 @@ private static Object computeValue(Object value, AggregationOperationContext con /** * @author Christoph Strobl - * @since 2.3 + * @since 3.0 */ public static class FieldAppender { @@ -226,7 +226,7 @@ private SetOperation build() { /** * @author Christoph Strobl - * @since 2.3 + * @since 3.0 */ public interface ValueAppender { diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/UnsetOperation.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/UnsetOperation.java index 5a62b5c504..abd62c5b56 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/UnsetOperation.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/UnsetOperation.java @@ -30,7 +30,7 @@ * Removes fields from documents. * * @author Christoph Strobl - * @since 2.3 + * @since 3.0 * @see MongoDB Aggregation Framework: * $unset */ diff --git a/spring-data-mongodb/src/main/resources/META-INF/spring.schemas b/spring-data-mongodb/src/main/resources/META-INF/spring.schemas index bcc150e5f8..af0a45b371 100644 --- a/spring-data-mongodb/src/main/resources/META-INF/spring.schemas +++ b/spring-data-mongodb/src/main/resources/META-INF/spring.schemas @@ -22,5 +22,6 @@ https\://www.springframework.org/schema/data/mongo/spring-mongo-1.8.xsd=org/spri https\://www.springframework.org/schema/data/mongo/spring-mongo-1.10.xsd=org/springframework/data/mongodb/config/spring-mongo-1.10.xsd https\://www.springframework.org/schema/data/mongo/spring-mongo-1.10.2.xsd=org/springframework/data/mongodb/config/spring-mongo-1.10.2.xsd https\://www.springframework.org/schema/data/mongo/spring-mongo-2.0.xsd=org/springframework/data/mongodb/config/spring-mongo-2.0.xsd -https\://www.springframework.org/schema/data/mongo/spring-mongo-2.2.xsd=org/springframework/data/mongodb/config/spring-mongo-2.0.xsd -https\://www.springframework.org/schema/data/mongo/spring-mongo.xsd=org/springframework/data/mongodb/config/spring-mongo-2.2.xsd +https\://www.springframework.org/schema/data/mongo/spring-mongo-2.2.xsd=org/springframework/data/mongodb/config/spring-mongo-2.2.xsd +https\://www.springframework.org/schema/data/mongo/spring-mongo-3.0.xsd=org/springframework/data/mongodb/config/spring-mongo-3.0.xsd +https\://www.springframework.org/schema/data/mongo/spring-mongo.xsd=org/springframework/data/mongodb/config/spring-mongo-3.0.xsd diff --git a/spring-data-mongodb/src/main/resources/org/springframework/data/mongodb/config/spring-mongo-3.0.xsd b/spring-data-mongodb/src/main/resources/org/springframework/data/mongodb/config/spring-mongo-3.0.xsd new file mode 100644 index 0000000000..bc1c52091a --- /dev/null +++ b/spring-data-mongodb/src/main/resources/org/springframework/data/mongodb/config/spring-mongo-3.0.xsd @@ -0,0 +1,708 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The WriteConcern that will be the default value used when asking the MongoDbFactory for a DB object + + + + + + + + + + + + + + The reference to a MongoTemplate. Will default to 'mongoTemplate'. + + + + + + + Enables creation of indexes for queries that get derived from the method name + and thus reference domain class properties. Defaults to false. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The reference to a DbFactory. + + + + + + + + + + + + The reference to a MongoTypeMapper to be used by this MappingMongoConverter. + + + + + + + The reference to a MappingContext. Will default to 'mappingContext'. + + + + + + + Disables JSR-303 validation on MongoDB documents before they are saved. By default it is set to false. + + + + + + + + + + Enables abbreviating the field names for domain class properties to the + first character of their camel case names, e.g. fooBar -> fb. Defaults to false. + + + + + + + + + + The reference to a FieldNamingStrategy. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A reference to a custom converter. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The reference to a DbFactory. + + + + + + + + + + + + The WriteConcern that will be the default value used when asking the MongoDbFactory for a DB object + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The reference to a DbFactory. + + + + + + + + + + + + + + + + diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/test/util/EnableIfMongoServerVersion.java b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/test/util/EnableIfMongoServerVersion.java index 1f5bdff616..9bd99945eb 100644 --- a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/test/util/EnableIfMongoServerVersion.java +++ b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/test/util/EnableIfMongoServerVersion.java @@ -25,7 +25,7 @@ /** * @author Christoph Strobl - * @since 2.3 + * @since 3.0 */ @Retention(RetentionPolicy.RUNTIME) @Target({ ElementType.TYPE, ElementType.METHOD }) diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/test/util/EnableIfReplicaSetAvailable.java b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/test/util/EnableIfReplicaSetAvailable.java index 16e0141933..78f965ca85 100644 --- a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/test/util/EnableIfReplicaSetAvailable.java +++ b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/test/util/EnableIfReplicaSetAvailable.java @@ -28,7 +28,7 @@ * replicaSet mode. Intended to be used along with {@link MongoServerCondition}. * * @author Christoph Strobl - * @since 2.3 + * @since 3.0 */ @Target({ ElementType.TYPE, ElementType.METHOD }) @Retention(RetentionPolicy.RUNTIME) diff --git a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/test/util/MongoTestUtils.java b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/test/util/MongoTestUtils.java index 38829da043..258f0625f1 100644 --- a/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/test/util/MongoTestUtils.java +++ b/spring-data-mongodb/src/test/java/org/springframework/data/mongodb/test/util/MongoTestUtils.java @@ -199,7 +199,7 @@ public static com.mongodb.reactivestreams.client.MongoClient reactiveReplSetClie /** * @return the server version extracted from buildInfo. - * @since 2.3.0 + * @since 3.0 */ public static Version serverVersion() { @@ -216,7 +216,7 @@ public static Version serverVersion() { /** * @return check if the server is running as part of a replica set. - * @since 2.3.0 + * @since 3.0 */ public static boolean serverIsReplSet() { diff --git a/src/main/asciidoc/new-features.adoc b/src/main/asciidoc/new-features.adoc index 82142252ad..1f0f4cac5b 100644 --- a/src/main/asciidoc/new-features.adoc +++ b/src/main/asciidoc/new-features.adoc @@ -1,8 +1,8 @@ [[new-features]] = New & Noteworthy -[[new-features.2-3-0]] -== What's New in Spring Data MongoDB 2.3 +[[new-features.3.0]] +== What's New in Spring Data MongoDB 3.0 * Support for <>. * Apply pagination when using GridFS `find(Query)`.