You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/asciidoc/preface.adoc
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
4
4
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.
5
5
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.
7
7
8
8
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.
9
9
@@ -56,4 +56,4 @@ Professional, from-the-source support, with guaranteed response time, is availab
56
56
[[get-started:up-to-date]]
57
57
=== Following Development
58
58
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]).
Copy file name to clipboardExpand all lines: src/main/asciidoc/reference/mapping.adoc
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -455,7 +455,7 @@ public class Person<T extends Address> {
455
455
return ssn;
456
456
}
457
457
458
-
// other getters/setters ommitted
458
+
// other getters/setters omitted
459
459
----
460
460
461
461
[[mapping-custom-object-construction]]
@@ -465,7 +465,7 @@ The mapping subsystem allows the customization of the object construction by ann
465
465
466
466
* If a parameter is annotated with the `@Value` annotation, the given expression is evaluated and the result is used as the parameter value.
467
467
* 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.
469
469
470
470
[source,java]
471
471
----
@@ -497,7 +497,7 @@ Additional examples for using the `@PersistenceConstructor` annotation can be fo
497
497
[[mapping-usage-indexes.compound-index]]
498
498
=== Compound Indexes
499
499
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.
501
501
502
502
NOTE: Compound indexes are very important to improve the performance of queries that involve criteria on multiple fields
503
503
@@ -530,7 +530,7 @@ public class Person {
530
530
531
531
NOTE: The text index feature is disabled by default for mongodb v.2.4.
532
532
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.
534
534
535
535
.Example Text Index Usage
536
536
====
@@ -585,7 +585,7 @@ public class Person {
585
585
----
586
586
====
587
587
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.
589
589
590
590
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`.
Copy file name to clipboardExpand all lines: src/main/asciidoc/reference/mongo-repositories.adoc
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -276,7 +276,7 @@ NOTE: Note that for version 1.0 we currently don't support referring to paramete
276
276
[[mongodb.repositories.queries.delete]]
277
277
=== Repository delete queries
278
278
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.
280
280
281
281
.`Delete…By` Query
282
282
====
@@ -296,7 +296,7 @@ Using return type `List` will retrieve and return all matching documents before
296
296
[[mongodb.repositories.queries.geo-spatial]]
297
297
=== Geo-spatial repository queries
298
298
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:
300
300
301
301
.Advanced `Near` queries
302
302
====
@@ -440,9 +440,9 @@ We think you will find this an extremely powerful tool for writing MongoDB queri
440
440
441
441
[[mongodb.repositories.queries.full-text]]
442
442
=== 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).
444
444
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.
446
446
447
447
[source, java]
448
448
----
@@ -501,7 +501,7 @@ class MongoTemplateProducer {
501
501
}
502
502
----
503
503
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:
0 commit comments