Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
85382f0dd8 | ||
|
|
739b44f6e5 | ||
|
|
49cd518647 | ||
|
|
b59c7f774f | ||
|
|
b7ac5f7970 | ||
|
|
9af1689fbf | ||
|
|
51ca3be48f | ||
|
|
8f8e9c6585 | ||
|
|
092217e425 | ||
|
|
9d1e1b8c17 |
6
pom.xml
6
pom.xml
@@ -5,7 +5,7 @@
|
||||
|
||||
<groupId>org.springframework.data</groupId>
|
||||
<artifactId>spring-data-mongodb-parent</artifactId>
|
||||
<version>3.3.7</version>
|
||||
<version>3.3.8</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.8</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.8</springdata.commons>
|
||||
<mongo>4.4.2</mongo>
|
||||
<mongo.reactivestreams>${mongo}</mongo.reactivestreams>
|
||||
<jmh.version>1.19</jmh.version>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<parent>
|
||||
<groupId>org.springframework.data</groupId>
|
||||
<artifactId>spring-data-mongodb-parent</artifactId>
|
||||
<version>3.3.7</version>
|
||||
<version>3.3.8</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<parent>
|
||||
<groupId>org.springframework.data</groupId>
|
||||
<artifactId>spring-data-mongodb-parent</artifactId>
|
||||
<version>3.3.7</version>
|
||||
<version>3.3.8</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<parent>
|
||||
<groupId>org.springframework.data</groupId>
|
||||
<artifactId>spring-data-mongodb-parent</artifactId>
|
||||
<version>3.3.7</version>
|
||||
<version>3.3.8</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
@@ -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' }," + //
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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> {
|
||||
|
||||
|
||||
@@ -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."));
|
||||
}
|
||||
|
||||
// -----------------
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Spring Data MongoDB 3.3.7 (2021.1.7)
|
||||
Spring Data MongoDB 3.3.8 (2021.1.8)
|
||||
Copyright (c) [2010-2019] Pivotal Software, Inc.
|
||||
|
||||
This product is licensed to you under the Apache License, Version 2.0 (the "License").
|
||||
@@ -37,5 +37,6 @@ conditions of the subcomponent's license, as noted in the LICENSE file.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user