Skip to content

Commit 1813b1a

Browse files
committed
DATAMONGO-1493 - Fix minor typo in reference documentation.
Related pull request: #391.
1 parent 6924173 commit 1813b1a

File tree

4 files changed

+54
-54
lines changed

4 files changed

+54
-54
lines changed

src/main/asciidoc/preface.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
The Spring Data MongoDB project applies core Spring concepts to the development of solutions using the MongoDB document style data store. We provide a "template" as a high-level abstraction for storing and querying documents. You will notice similarities to the JDBC support in the Spring Framework.
55

6-
This document is the reference guide for Spring Data - Document Support. It explains Document module concepts and semantics and the syntax for various stores namespaces.
6+
This document is the reference guide for Spring Data - Document Support. It explains Document module concepts and semantics and the syntax for various store namespaces.
77

88
This section provides some basic introduction to Spring and Document database. The rest of the document refers only to Spring Data Document features and assumes the user is familiar with document databases such as MongoDB and CouchDB as well as Spring concepts.
99

@@ -56,4 +56,4 @@ Professional, from-the-source support, with guaranteed response time, is availab
5656
[[get-started:up-to-date]]
5757
=== Following Development
5858

59-
For information on the Spring Data Mongo source code repository, nightly builds and snapshot artifacts please see the http://projects.spring.io/spring-data-mongodb/[Spring Data Mongo homepage]. You can help make Spring Data best serve the needs of the Spring community by interacting with developers through the Community on http://stackoverflow.com/questions/tagged/spring-data[Stackoverflow]. To follow developer activity look for the mailing list information on the Spring Data Mongo homepage. If you encounter a bug or want to suggest an improvement, please create a ticket on the Spring Data issue https://jira.spring.io/browse/DATAMONGO[tracker]. To stay up to date with the latest news and announcements in the Spring eco system, subscribe to the Spring Community http://spring.io[Portal]. Lastly, you can follow the SpringSource Data http://spring.io/blog[blog ]or the project team on Twitter (http://twitter.com/SpringData[SpringData]).
59+
For information on the Spring Data Mongo source code repository, nightly builds and snapshot artifacts please see the http://projects.spring.io/spring-data-mongodb/[Spring Data Mongo homepage]. You can help make Spring Data best serve the needs of the Spring community by interacting with developers through the Community on http://stackoverflow.com/questions/tagged/spring-data[Stackoverflow]. To follow developer activity look for the mailing list information on the Spring Data Mongo homepage. If you encounter a bug or want to suggest an improvement, please create a ticket on the Spring Data issue https://jira.spring.io/browse/DATAMONGO[tracker]. To stay up to date with the latest news and announcements in the Spring eco system, subscribe to the Spring Community http://spring.io[Portal]. Lastly, you can follow the Spring http://spring.io/blog[blog ]or the project team on Twitter (http://twitter.com/SpringData[SpringData]).

src/main/asciidoc/reference/mapping.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ public class Person<T extends Address> {
455455
return ssn;
456456
}
457457
458-
// other getters/setters ommitted
458+
// other getters/setters omitted
459459
----
460460

461461
[[mapping-custom-object-construction]]
@@ -465,7 +465,7 @@ The mapping subsystem allows the customization of the object construction by ann
465465

466466
* If a parameter is annotated with the `@Value` annotation, the given expression is evaluated and the result is used as the parameter value.
467467
* If the Java type has a property whose name matches the given field of the input document, then it's property information is used to select the appropriate constructor parameter to pass the input field value to. This works only if the parameter name information is present in the java `.class` files which can be achieved by compiling the source with debug information or using the new `-parameters` command-line switch for javac in Java 8.
468-
* Otherwise an `MappingException` will be thrown indicating that the given constructor parameter could not be bound.
468+
* Otherwise a `MappingException` will be thrown indicating that the given constructor parameter could not be bound.
469469

470470
[source,java]
471471
----
@@ -497,7 +497,7 @@ Additional examples for using the `@PersistenceConstructor` annotation can be fo
497497
[[mapping-usage-indexes.compound-index]]
498498
=== Compound Indexes
499499

500-
Compound indexes are also supported. They are defined at the class level, rather than on indidividual properties.
500+
Compound indexes are also supported. They are defined at the class level, rather than on individual properties.
501501

502502
NOTE: Compound indexes are very important to improve the performance of queries that involve criteria on multiple fields
503503

@@ -530,7 +530,7 @@ public class Person {
530530

531531
NOTE: The text index feature is disabled by default for mongodb v.2.4.
532532

533-
Creating a text index allows to accumulate several fields into a searchable full text index. It is only possible to have one text index per collection so all fields marked with `@TextIndexed` are combined into this index. Properties can be weighted to influence document score for ranking results. The default language for the text index is english, to change the default language set `@Document(language="spanish")` to any language you want. Using a property called `language` or `@Language` allows to define a language override on a per document base.
533+
Creating a text index allows accumulating several fields into a searchable full text index. It is only possible to have one text index per collection so all fields marked with `@TextIndexed` are combined into this index. Properties can be weighted to influence document score for ranking results. The default language for the text index is english, to change the default language set `@Document(language="spanish")` to any language you want. Using a property called `language` or `@Language` allows to define a language override on a per document base.
534534

535535
.Example Text Index Usage
536536
====
@@ -585,7 +585,7 @@ public class Person {
585585
----
586586
====
587587

588-
There's no need to use something like `@OneToMany` because the mapping framework sees that you're wanting a one-to-many relationship because there is a List of objects. When the object is stored in MongoDB, there will be a list of DBRefs rather than the `Account` objects themselves.
588+
There's no need to use something like `@OneToMany` because the mapping framework sees that you want a one-to-many relationship because there is a List of objects. When the object is stored in MongoDB, there will be a list of DBRefs rather than the `Account` objects themselves.
589589

590590
IMPORTANT: The mapping framework does not handle cascading saves. If you change an `Account` object that is referenced by a `Person` object, you must save the Account object separately. Calling `save` on the `Person` object will not automatically save the `Account` objects in the property `accounts`.
591591

src/main/asciidoc/reference/mongo-repositories.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ NOTE: Note that for version 1.0 we currently don't support referring to paramete
276276
[[mongodb.repositories.queries.delete]]
277277
=== Repository delete queries
278278

279-
The above keywords can be used in conjunciton with `delete…By` or `remove…By` to create queries deleting matching documents.
279+
The above keywords can be used in conjunction with `delete…By` or `remove…By` to create queries deleting matching documents.
280280

281281
.`Delete…By` Query
282282
====
@@ -296,7 +296,7 @@ Using return type `List` will retrieve and return all matching documents before
296296
[[mongodb.repositories.queries.geo-spatial]]
297297
=== Geo-spatial repository queries
298298

299-
As you've just seen there are a few keywords triggering geo-spatial operations within a MongoDB query. The `Near` keyword allows some further modification. Let's have look at some examples:
299+
As you've just seen there are a few keywords triggering geo-spatial operations within a MongoDB query. The `Near` keyword allows some further modification. Let's have a look at some examples:
300300

301301
.Advanced `Near` queries
302302
====
@@ -440,9 +440,9 @@ We think you will find this an extremely powerful tool for writing MongoDB queri
440440

441441
[[mongodb.repositories.queries.full-text]]
442442
=== Full-text search queries
443-
MongoDBs full text search feature is very store specic and therefore can rather be found on `MongoRepository` than on the more general `CrudRepository`. What we need is a document with a full-text index defined for (Please see section <<mapping-usage-indexes.text-index>> for creating).
443+
MongoDBs full text search feature is very store specific and therefore can rather be found on `MongoRepository` than on the more general `CrudRepository`. What we need is a document with a full-text index defined for (Please see section <<mapping-usage-indexes.text-index>> for creating).
444444

445-
Additional methods on `MongoRepository` take `TextCriteria` as input parameter. In addition to those explicit methods, it is also possible to add a `TextCriteria` derived repository method. The criteria will added as an additional `AND` criteria. Once the entity contains a `@TextScore` annotated property the documents full-text score will be retrieved. Furthermore the `@TextScore` annotated property will also make it possible to sort by the documents score.
445+
Additional methods on `MongoRepository` take `TextCriteria` as input parameter. In addition to those explicit methods, it is also possible to add a `TextCriteria` derived repository method. The criteria will be added as an additional `AND` criteria. Once the entity contains a `@TextScore` annotated property the documents full-text score will be retrieved. Furthermore the `@TextScore` annotated property will also make it possible to sort by the documents score.
446446

447447
[source, java]
448448
----
@@ -501,7 +501,7 @@ class MongoTemplateProducer {
501501
}
502502
----
503503

504-
The Spring Data MongoDB CDI extension will pick up the `MongoTemplate` available as CDI bean and create a proxy for a Spring Data repository whenever an bean of a repository type is requested by the container. Thus obtaining an instance of a Spring Data repository is a matter of declaring an `@Inject`-ed property:
504+
The Spring Data MongoDB CDI extension will pick up the `MongoTemplate` available as CDI bean and create a proxy for a Spring Data repository whenever a bean of a repository type is requested by the container. Thus obtaining an instance of a Spring Data repository is a matter of declaring an `@Inject`-ed property:
505505

506506
[source,java]
507507
----

0 commit comments

Comments
 (0)