Skip to content

Commit 77b1f3c

Browse files
committed
DATAMONGO-1791 - Adapt to changed Spring Framework 5 documentation structure.
Update links in the reference docs to their new locations.
1 parent 5444ac3 commit 77b1f3c

File tree

9 files changed

+24
-22
lines changed

9 files changed

+24
-22
lines changed

spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/MongoOperations.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
* @author Christoph Strobl
6060
* @author Thomas Darimont
6161
* @author Maninder Singh
62+
* @author Mark Paluch
6263
*/
6364
public interface MongoOperations extends FluentMongoOperations {
6465

@@ -850,7 +851,7 @@ <T> T findAndModify(Query query, Update update, FindAndModifyOptions options, Cl
850851
* If you object has an "Id' property, it will be set with the generated Id from MongoDB. If your Id property is a
851852
* String then MongoDB ObjectId will be used to populate that string. Otherwise, the conversion from ObjectId to your
852853
* property type will be handled by Spring's BeanWrapper class that leverages Type Conversion API. See
853-
* <a href="http://docs.spring.io/spring/docs/current/spring-framework-reference/html/validation.html#core-convert" >
854+
* <a href="http://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#validation" >
854855
* Spring's Type Conversion"</a> for more details.
855856
* <p/>
856857
* <p/>
@@ -907,7 +908,7 @@ <T> T findAndModify(Query query, Update update, FindAndModifyOptions options, Cl
907908
* If you object has an "Id' property, it will be set with the generated Id from MongoDB. If your Id property is a
908909
* String then MongoDB ObjectId will be used to populate that string. Otherwise, the conversion from ObjectId to your
909910
* property type will be handled by Spring's BeanWrapper class that leverages Type Conversion API. See
910-
* <a href="http://docs.spring.io/spring/docs/current/spring-framework-reference/html/validation.html#core-convert" >
911+
* <a href="http://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#validation" >
911912
* Spring's Type Conversion"</a> for more details.
912913
*
913914
* @param objectToSave the object to store in the collection. Must not be {@literal null}.
@@ -924,7 +925,7 @@ <T> T findAndModify(Query query, Update update, FindAndModifyOptions options, Cl
924925
* If you object has an "Id' property, it will be set with the generated Id from MongoDB. If your Id property is a
925926
* String then MongoDB ObjectId will be used to populate that string. Otherwise, the conversion from ObjectId to your
926927
* property type will be handled by Spring's BeanWrapper class that leverages Type Conversion API. See <a
927-
* http://docs.spring.io/spring/docs/current/spring-framework-reference/html/validation.html#core-convert">Spring's
928+
* http://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#validation">Spring's
928929
* Type Conversion"</a> for more details.
929930
*
930931
* @param objectToSave the object to store in the collection. Must not be {@literal null}.

spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/ReactiveMongoOperations.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ <T> Mono<T> findAndModify(Query query, Update update, FindAndModifyOptions optio
613613
* If you object has an "Id' property, it will be set with the generated Id from MongoDB. If your Id property is a
614614
* String then MongoDB ObjectId will be used to populate that string. Otherwise, the conversion from ObjectId to your
615615
* property type will be handled by Spring's BeanWrapper class that leverages Type Conversion API. See
616-
* <a href="http://docs.spring.io/spring/docs/current/spring-framework-reference/html/validation.html#core-convert" >
616+
* <a href="http://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#validation" >
617617
* Spring's Type Conversion"</a> for more details.
618618
* <p/>
619619
* <p/>
@@ -673,7 +673,7 @@ <T> Mono<T> findAndModify(Query query, Update update, FindAndModifyOptions optio
673673
* If you object has an "Id' property, it will be set with the generated Id from MongoDB. If your Id property is a
674674
* String then MongoDB ObjectId will be used to populate that string. Otherwise, the conversion from ObjectId to your
675675
* property type will be handled by Spring's BeanWrapper class that leverages Type Conversion API. See
676-
* <a href="http://docs.spring.io/spring/docs/current/spring-framework-reference/html/validation.html#core-convert" >
676+
* <a href="http://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#validation" >
677677
* Spring's Type Conversion"</a> for more details.
678678
* <p/>
679679
* <p/>
@@ -721,7 +721,7 @@ <T> Mono<T> findAndModify(Query query, Update update, FindAndModifyOptions optio
721721
* If you object has an "Id' property, it will be set with the generated Id from MongoDB. If your Id property is a
722722
* String then MongoDB ObjectId will be used to populate that string. Otherwise, the conversion from ObjectId to your
723723
* property type will be handled by Spring's BeanWrapper class that leverages Type Conversion API. See
724-
* <a href="http://docs.spring.io/spring/docs/current/spring-framework-reference/html/validation.html#core-convert" >
724+
* <a href="http://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#validation" >
725725
* Spring's Type Conversion"</a> for more details.
726726
*
727727
* @param objectToSave the object to store in the collection. Must not be {@literal null}.
@@ -739,7 +739,7 @@ <T> Mono<T> findAndModify(Query query, Update update, FindAndModifyOptions optio
739739
* If you object has an "Id' property, it will be set with the generated Id from MongoDB. If your Id property is a
740740
* String then MongoDB ObjectId will be used to populate that string. Otherwise, the conversion from ObjectId to your
741741
* property type will be handled by Spring's BeanWrapper class that leverages Type Conversion API. See <a
742-
* http://docs.spring.io/spring/docs/current/spring-framework-reference/html/validation.html#core-convert">Spring's
742+
* http://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#validation">Spring's
743743
* Type Conversion"</a> for more details.
744744
*
745745
* @param objectToSave the object to store in the collection. Must not be {@literal null}.
@@ -758,7 +758,7 @@ <T> Mono<T> findAndModify(Query query, Update update, FindAndModifyOptions optio
758758
* If you object has an "Id' property, it will be set with the generated Id from MongoDB. If your Id property is a
759759
* String then MongoDB ObjectId will be used to populate that string. Otherwise, the conversion from ObjectId to your
760760
* property type will be handled by Spring's BeanWrapper class that leverages Type Conversion API. See
761-
* <a href="http://docs.spring.io/spring/docs/current/spring-framework-reference/html/validation.html#core-convert" >
761+
* <a href="http://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#validation" >
762762
* Spring's Type Conversion"</a> for more details.
763763
*
764764
* @param objectToSave the object to store in the collection. Must not be {@literal null}.
@@ -776,7 +776,7 @@ <T> Mono<T> findAndModify(Query query, Update update, FindAndModifyOptions optio
776776
* If you object has an "Id' property, it will be set with the generated Id from MongoDB. If your Id property is a
777777
* String then MongoDB ObjectId will be used to populate that string. Otherwise, the conversion from ObjectId to your
778778
* property type will be handled by Spring's BeanWrapper class that leverages Type Conversion API. See <a
779-
* http://docs.spring.io/spring/docs/current/spring-framework-reference/html/validation.html#core-convert">Spring's
779+
* http://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#validation">Spring's
780780
* Type Conversion"</a> for more details.
781781
*
782782
* @param objectToSave the object to store in the collection. Must not be {@literal null}.

spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/aggregation/AggregationSpELExpression.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016. the original author or authors.
2+
* Copyright 2016-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@
2020

2121
/**
2222
* An {@link AggregationExpression} that renders a MongoDB Aggregation Framework expression from the AST of a
23-
* <a href="http://docs.spring.io/spring/docs/current/spring-framework-reference/html/expressions.html">SpEL
23+
* <a href="http://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#expressions">SpEL
2424
* expression</a>. <br />
2525
* <br />
2626
* <strong>Samples:</strong> <br />
@@ -35,6 +35,7 @@
3535
* </code>
3636
*
3737
* @author Christoph Strobl
38+
* @author Mark Paluch
3839
* @see SpelExpressionTransformer
3940
* @since 1.10
4041
*/

src/main/asciidoc/new-features.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
== What's new in Spring Data MongoDB 1.8
4343

4444
* `Criteria` offers support for creating `$geoIntersects`.
45-
* Support http://docs.spring.io/spring/docs/{springVersion}/spring-framework-reference/html/expressions.html[SpEL expressions] in `@Query`.
45+
* Support http://docs.spring.io/spring/docs/{springVersion}/spring-framework-reference/core.html#expressions[SpEL expressions] in `@Query`.
4646
* `MongoMappingEvents` expose the collection name they are issued for.
4747
* Improved support for `<mongo:mongo-client credentials="..." />`.
4848
* Improved index creation failure error message.

src/main/asciidoc/preface.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This section provides some basic introduction to Spring and Document databases.
99

1010
[[get-started:first-steps:spring]]
1111
== Knowing Spring
12-
Spring Data uses Spring framework's http://docs.spring.io/spring/docs/{springVersion}/spring-framework-reference/html/spring-core.html[core] functionality, such as the http://docs.spring.io/spring/docs/{springVersion}/spring-framework-reference/html/beans.html[IoC] container, http://docs.spring.io/spring/docs/{springVersion}/spring-framework-reference/html/validation.html#core-convert[type conversion system], http://docs.spring.io/spring/docs/{springVersion}/spring-framework-reference/html/expressions.html[expression language], http://docs.spring.io/spring/docs/{springVersion}/spring-framework-reference/html/jmx.html[JMX integration], and portable http://docs.spring.io/spring/docs/{springVersion}/spring-framework-reference/html/dao.html#dao-exceptions[DAO exception hierarchy]. While it is not important to know the Spring APIs, understanding the concepts behind them is. At a minimum, the idea behind IoC should be familiar for whatever IoC container you choose to use.
12+
Spring Data uses Spring framework's http://docs.spring.io/spring/docs/{springVersion}/spring-framework-reference/core.html[core] functionality, such as the http://docs.spring.io/spring/docs/{springVersion}/spring-framework-reference/core.html#beans[IoC] container, http://docs.spring.io/spring/docs/{springVersion}/spring-framework-reference/core.html#validation[type conversion system], http://docs.spring.io/spring/docs/{springVersion}/spring-framework-reference/core.html#expressions[expression language], http://docs.spring.io/spring/docs/{springVersion}/spring-framework-reference/integration.html#jmx[JMX integration], and portable http://docs.spring.io/spring/docs/{springVersion}/spring-framework-reference/data-access.html#dao-exceptions[DAO exception hierarchy]. While it is not important to know the Spring APIs, understanding the concepts behind them is. At a minimum, the idea behind IoC should be familiar for whatever IoC container you choose to use.
1313

1414
The core functionality of the MongoDB support can be used directly, with no need to invoke the IoC services of the Spring Container. This is much like `JdbcTemplate` which can be used 'standalone' without any other services of the Spring container. To leverage all the features of Spring Data MongoDB, such as the repository support, you will need to configure some parts of the library using Spring.
1515

src/main/asciidoc/reference/jmx.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[[mongo.jmx]]
22
= JMX support
33

4-
The JMX support for MongoDB exposes the results of executing the 'serverStatus' command on the admin database for a single MongoDB server instance. It also exposes an administrative MBean, MongoAdmin which will let you perform administrative operations such as drop or create a database. The JMX features build upon the JMX feature set available in the Spring Framework. See http://docs.spring.io/spring/docs/{springVersion}/spring-framework-reference/html/jmx.html[here ] for more details.
4+
The JMX support for MongoDB exposes the results of executing the 'serverStatus' command on the admin database for a single MongoDB server instance. It also exposes an administrative MBean, MongoAdmin which will let you perform administrative operations such as drop or create a database. The JMX features build upon the JMX feature set available in the Spring Framework. See http://docs.spring.io/spring/docs/{springVersion}/spring-framework-reference/integration.html#jmx[here ] for more details.
55

66
[[mongodb:jmx-configuration]]
77
== MongoDB JMX Configuration

src/main/asciidoc/reference/mapping.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ When storing and querying your objects it is convenient to have a `MongoConverte
601601

602602
To selectively handle the conversion yourself, register one or more one or more `org.springframework.core.convert.converter.Converter` instances with the MongoConverter.
603603

604-
NOTE: Spring 3.0 introduced a core.convert package that provides a general type conversion system. This is described in detail in the Spring reference documentation section entitled http://docs.spring.io/spring/docs/{springVersion}/spring-framework-reference/html/validation.html#core-convert[Spring Type Conversion].
604+
NOTE: Spring 3.0 introduced a core.convert package that provides a general type conversion system. This is described in detail in the Spring reference documentation section entitled http://docs.spring.io/spring/docs/{springVersion}/spring-framework-reference/core.html#validation[Spring Type Conversion].
605605

606606
The method `customConversions` in `AbstractMongoConfiguration` can be used to configure Converters. The examples <<mapping-configuration,here>> at the beginning of this chapter show how to perform the configuration using Java and XML.
607607

0 commit comments

Comments
 (0)