Compare commits

...

14 Commits
3.3.7 ... 3.3.9

Author SHA1 Message Date
Spring Builds
24e423b8d1 Release version 3.3.9 (2021.1.9).
See #4205
2022-10-13 11:54:15 +00:00
Spring Builds
4d5f3c66d5 Prepare 3.3.9 (2021.1.9).
See #4205
2022-10-13 11:51:37 +00:00
Spring Builds
f29d03f9c8 After release cleanups.
See #4172
2022-10-13 07:52:07 +00:00
Spring Builds
fbf4726e56 Prepare next development iteration.
See #4172
2022-10-13 07:51:54 +00:00
Spring Builds
85382f0dd8 Release version 3.3.8 (2021.1.8).
See #4172
2022-10-13 07:28:21 +00:00
Spring Builds
739b44f6e5 Prepare 3.3.8 (2021.1.8).
See #4172
2022-10-13 07:25:55 +00:00
Christoph Strobl
49cd518647 Update tests.
Original Pull Request: #4196
2022-10-11 09:55:54 +02:00
gongxuanzhang
b59c7f774f Fix json schema type name for boolean.
Was boolean should have been bool.

Closes: #4196
2022-10-11 09:55:08 +02:00
Christoph Strobl
b7ac5f7970 Update reactive transaction sample in reference documentation.
Closes: #4190
2022-10-06 13:18:44 +02:00
Christoph Ahlers
9af1689fbf Fix javadoc parameter names.
Closes: #4179
2022-10-04 12:39:48 +02:00
Wan Bachtiar
51ca3be48f Fix typo in reference documentation.
Closes: #4180
2022-10-04 12:25:43 +02:00
Seungwoo Jo
8f8e9c6585 Fix documentation typo in BasicQuery.
Closes #4169
Original pull request: #4170.
2022-09-21 10:58:22 +02:00
Spring Builds
092217e425 After release cleanups.
See #4115
2022-09-19 09:04:54 +00:00
Spring Builds
9d1e1b8c17 Prepare next development iteration.
See #4115
2022-09-19 09:04:41 +00:00
16 changed files with 26 additions and 21 deletions

View File

@@ -5,7 +5,7 @@
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-mongodb-parent</artifactId>
<version>3.3.7</version>
<version>3.3.9</version>
<packaging>pom</packaging>
<name>Spring Data MongoDB</name>
@@ -15,7 +15,7 @@
<parent>
<groupId>org.springframework.data.build</groupId>
<artifactId>spring-data-parent</artifactId>
<version>2.6.7</version>
<version>2.6.9</version>
</parent>
<modules>
@@ -26,7 +26,7 @@
<properties>
<project.type>multi</project.type>
<dist.id>spring-data-mongodb</dist.id>
<springdata.commons>2.6.7</springdata.commons>
<springdata.commons>2.6.9</springdata.commons>
<mongo>4.4.2</mongo>
<mongo.reactivestreams>${mongo}</mongo.reactivestreams>
<jmh.version>1.19</jmh.version>

View File

@@ -7,7 +7,7 @@
<parent>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-mongodb-parent</artifactId>
<version>3.3.7</version>
<version>3.3.9</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@@ -14,7 +14,7 @@
<parent>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-mongodb-parent</artifactId>
<version>3.3.7</version>
<version>3.3.9</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@@ -11,7 +11,7 @@
<parent>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-mongodb-parent</artifactId>
<version>3.3.7</version>
<version>3.3.9</version>
<relativePath>../pom.xml</relativePath>
</parent>

View File

@@ -446,7 +446,7 @@ public class ScriptOperators {
/**
* Define the optional {@code initArgs} for the {@link #init(String)} function.
*
* @param function must not be {@literal null}.
* @param args must not be {@literal null}.
* @return this.
*/
@Override

View File

@@ -73,7 +73,7 @@ public class BasicQuery extends Query {
*
* @param queryObject must not be {@literal null}.
* @param fieldsObject must not be {@literal null}.
* @throws IllegalArgumentException when {@code sortObject} or {@code fieldsObject} is {@literal null}.
* @throws IllegalArgumentException when {@code queryObject} or {@code fieldsObject} is {@literal null}.
*/
public BasicQuery(Document queryObject, Document fieldsObject) {

View File

@@ -295,7 +295,7 @@ public interface JsonSchemaObject {
Type OBJECT = jsonTypeOf("object");
Type ARRAY = jsonTypeOf("array");
Type NUMBER = jsonTypeOf("number");
Type BOOLEAN = jsonTypeOf("boolean");
Type BOOLEAN = jsonTypeOf("bool");
Type STRING = jsonTypeOf("string");
Type NULL = jsonTypeOf("null");

View File

@@ -179,7 +179,7 @@ public class MappingMongoJsonSchemaCreatorUnitTests {
" 're-named-property' : { 'type' : 'string' }," + //
" 'retypedProperty' : { 'bsonType' : 'javascript' }," + //
" 'primitiveInt' : { 'bsonType' : 'int' }," + //
" 'booleanProperty' : { 'type' : 'boolean' }," + //
" 'booleanProperty' : { 'type' : 'bool' }," + //
" 'longProperty' : { 'bsonType' : 'long' }," + //
" 'intProperty' : { 'bsonType' : 'int' }," + //
" 'dateProperty' : { 'bsonType' : 'date' }," + //

View File

@@ -66,6 +66,7 @@ import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.NearQuery;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.data.mongodb.repository.Person;
import org.springframework.data.mongodb.test.util.EnableIfMongoServerVersion;
import org.springframework.data.mongodb.test.util.MongoTemplateExtension;
import org.springframework.data.mongodb.test.util.MongoTestTemplate;
import org.springframework.data.mongodb.test.util.MongoVersion;
@@ -315,6 +316,7 @@ public class AggregationTests {
}
@Test // DATAMONGO-1391
@EnableIfMongoServerVersion(isLessThan = "6.0")
void shouldUnwindPreserveEmpty() {
MongoCollection<Document> coll = mongoTemplate.getCollection(INPUT_COLLECTION);

View File

@@ -117,8 +117,8 @@ public class GeoSpatialIndexTests extends AbstractIntegrationTests {
/**
* Returns whether an index with the given name exists for the given entity type.
*
* @param indexName
* @param entityType
* @param type
* @return
*/
private boolean hasIndexOfType(Class<?> entityType, final String type) {

View File

@@ -45,7 +45,7 @@ class SubscriptionUtils {
* Wait for all {@link Subscription Subscriptions} to {@link Subscription#isActive() become active} but not longer
* than {@link #DEFAULT_TIMEOUT}.
*
* @param subscription
* @param subscriptions
* @throws InterruptedException
*/
static void awaitSubscriptions(Subscription... subscriptions) throws InterruptedException {
@@ -131,7 +131,8 @@ class SubscriptionUtils {
/**
* {@link MessageListener} implementation collecting received {@link Message messages}.
*
* @param <M>
* @param <S> source message type.
* @param <T> target message type.
*/
static class CollectingMessageListener<S, T> implements MessageListener<S, T> {

View File

@@ -133,7 +133,7 @@ class JsonSchemaObjectUnitTests {
.append("description", "Must be an object defining restrictions for name, active.").append("properties",
new Document("name", new Document("type", "string")
.append("description", "Must be a string with length unbounded-10].").append("maxLength", 10))
.append("active", new Document("type", "boolean")));
.append("active", new Document("type", "bool")));
assertThat(object().generatedDescription()
.properties(JsonSchemaProperty.string("name").maxLength(10).generatedDescription(),
@@ -266,7 +266,7 @@ class JsonSchemaObjectUnitTests {
void arrayObjectShouldRenderItemsCorrectly() {
assertThat(array().items(Arrays.asList(string(), bool())).toDocument()).isEqualTo(new Document("type", "array")
.append("items", Arrays.asList(new Document("type", "string"), new Document("type", "boolean"))));
.append("items", Arrays.asList(new Document("type", "string"), new Document("type", "bool"))));
}
@Test // DATAMONGO-2613
@@ -316,7 +316,7 @@ class JsonSchemaObjectUnitTests {
void booleanShouldRenderCorrectly() {
assertThat(bool().generatedDescription().toDocument())
.isEqualTo(new Document("type", "boolean").append("description", "Must be a boolean."));
.isEqualTo(new Document("type", "bool").append("description", "Must be a boolean."));
}
// -----------------

View File

@@ -32,7 +32,7 @@ public abstract class Assertions extends org.assertj.core.api.Assertions {
/**
* Create assertion for {@link Document}.
*
* @param actual the actual value.
* @param document the actual value.
* @return the created assertion object.
*/
public static DocumentAssert assertThat(Document document) {

View File

@@ -302,10 +302,10 @@ The following example shows how to create and use transactions with a `ReactiveM
[source,java]
----
@Configuration
static class Config extends AbstractMongoClientConfiguration {
public class Config extends AbstractReactiveMongoConfiguration {
@Bean
ReactiveMongoTransactionManager transactionManager(ReactiveDatabaseFactory factory) { <1>
ReactiveMongoTransactionManager transactionManager(ReactiveMongoDatabaseFactory factory) { <1>
return new ReactiveMongoTransactionManager(factory);
}

View File

@@ -252,7 +252,7 @@ static class Patient {
[TIP]
====
The `@Encrypted` Annoation supports resolving keyIds via SpEL Expressions.
The `@Encrypted` Annotation supports resolving keyIds via SpEL Expressions.
To do so additional environment metadata (via the `MappingContext`) is required and must be provided.
[source,java]

View File

@@ -1,4 +1,4 @@
Spring Data MongoDB 3.3.7 (2021.1.7)
Spring Data MongoDB 3.3.9 (2021.1.9)
Copyright (c) [2010-2019] Pivotal Software, Inc.
This product is licensed to you under the Apache License, Version 2.0 (the "License").
@@ -36,6 +36,8 @@ conditions of the subcomponent's license, as noted in the LICENSE file.