Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.springframework.data</groupId>
<artifactId>spring-data-mongodb-parent</artifactId>
<version>5.0.0-SNAPSHOT</version>
<version>5.0.x-GH-5074-SNAPSHOT</version>
<packaging>pom</packaging>

<name>Spring Data MongoDB</name>
Expand Down
2 changes: 1 addition & 1 deletion spring-data-mongodb-distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-mongodb-parent</artifactId>
<version>5.0.0-SNAPSHOT</version>
<version>5.0.x-GH-5074-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion spring-data-mongodb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-mongodb-parent</artifactId>
<version>5.0.0-SNAPSHOT</version>
<version>5.0.x-GH-5074-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,15 @@

/**
* If {@literal true} the index will be created in the background.
* <p>
* <strong>NOTE:</strong> Since MongoDB 4.2 the background flag is ignored by the server if set.
*
* @return {@literal false} by default.
* @see <a href=
* "https://docs.mongodb.org/manual/core/indexes/#background-construction">https://docs.mongodb.org/manual/core/indexes/#background-construction</a>
* @deprecated since 5.0 for removal without replacement.
*/
@Deprecated(since = "5.0", forRemoval = true)
boolean background() default false;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,15 @@ public Index sparse() {

/**
* Build the index in background (non blocking).
* <p>
* <strong>NOTE:</strong> Since MongoDB 4.2 the background flag is ignored by the server if set.
*
* @return this.
* @since 1.5
*/@Contract("-> this")
* @deprecated since 5.0 for removal without replacement.
*/
@Deprecated(since = "5.0", forRemoval = true)
@Contract("-> this")
public Index background() {

this.background = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,15 @@

/**
* If {@literal true} the index will be created in the background.
* <p>
* <strong>NOTE:</strong> Since MongoDB 4.2 the background flag is ignored by the server if set.
*
* @return {@literal false} by default.
* @deprecated since 5.0 for removal without replacement.
* @see <a href=
* "https://docs.mongodb.org/manual/core/indexes/#background-construction">https://docs.mongodb.org/manual/core/indexes/#background-construction</a>
*/
@Deprecated(since = "5.0", forRemoval = true)
boolean background() default false;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ public void compoundIndexOnSuperClassResolvedCorrectly() {
public void compoundIndexDoesNotSpecifyNameWhenUsingGenerateName() {

List<IndexDefinitionHolder> indexDefinitions = prepareMappingContextAndResolveIndexForType(
ComountIndexWithAutogeneratedName.class);
CompoundIndexWithAutogeneratedName.class);

IndexDefinition indexDefinition = indexDefinitions.get(0).getIndexDefinition();
assertThat(indexDefinition.getIndexOptions())
Expand Down Expand Up @@ -778,10 +778,10 @@ class SingleCompoundIndex {}

class IndexDefinedOnSuperClass extends CompoundIndexOnLevelZero {}

@Document("ComountIndexWithAutogeneratedName")
@Document("CompoundIndexWithAutogeneratedName")
@CompoundIndexes({ @CompoundIndex(useGeneratedName = true, def = "{'foo': 1, 'bar': -1}", background = true,
sparse = true, unique = true) })
class ComountIndexWithAutogeneratedName {}
class CompoundIndexWithAutogeneratedName {}

@Document("WithComposedAnnotation")
@ComposedCompoundIndex
Expand Down