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: spring-data-mongodb-cross-store/src/main/java/org/springframework/data/mongodb/crossstore/DocumentBacked.java
+7-1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2011 the original author or authors.
2
+
* Copyright 2011-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Copy file name to clipboardExpand all lines: spring-data-mongodb-cross-store/src/main/java/org/springframework/data/mongodb/crossstore/MongoChangeSetPersister.java
+3-1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2011-2016 the original author or authors.
2
+
* Copyright 2011-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -40,7 +40,9 @@
40
40
* @author Oliver Gierke
41
41
* @author Alex Vengrovsk
42
42
* @author Mark Paluch
43
+
* @deprecated will be removed without replacement.
Copy file name to clipboardExpand all lines: spring-data-mongodb-cross-store/src/main/java/org/springframework/data/mongodb/crossstore/MongoDocumentBacking.aj
+3-1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2011 the original author or authors.
2
+
* Copyright 2011-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
Copy file name to clipboardExpand all lines: spring-data-mongodb-cross-store/src/main/java/org/springframework/data/mongodb/crossstore/RelatedDocument.java
+3-1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2011 the original author or authors.
2
+
* Copyright 2011-2017 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -22,7 +22,9 @@
22
22
23
23
/**
24
24
* @author Thomas Risberg
25
+
* @deprecated will be removed without replacement.
Copy file name to clipboardExpand all lines: src/main/asciidoc/reference/cross-store.adoc
+2
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
[[mongo.cross.store]]
2
2
= Cross Store support
3
3
4
+
WARNING: Deprecated - will be removed without replacement.
5
+
4
6
Sometimes you need to store data in multiple data stores and these data stores can be of different types. One might be relational while the other a document store. For this use case we have created a separate module in the MongoDB support that handles what we call cross-store support. The current implementation is based on JPA as the driver for the relational database and we allow select fields in the Entities to be stored in a Mongo database. In addition to allowing you to store your data in two stores we also coordinate persistence operations for the non-transactional MongoDB store with the transaction life-cycle for the relational database.
Copy file name to clipboardExpand all lines: src/main/asciidoc/reference/mongodb.adoc
+1-1
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ The MongoDB support contains a wide range of features which are summarized below
12
12
* Java based Query, Criteria, and Update DSLs
13
13
* Automatic implementation of Repository interfaces including support for custom finder methods.
14
14
* QueryDSL integration to support type-safe queries.
15
-
* Cross-store persistence - support for JPA Entities with fields transparently persisted/retrieved using MongoDB
15
+
* Cross-store persistence - support for JPA Entities with fields transparently persisted/retrieved using MongoDB (deprecated - will be removed without replacement)
16
16
* GeoSpatial integration
17
17
18
18
For most tasks you will find yourself using `MongoTemplate` or the Repository support that both leverage the rich mapping functionality. `MongoTemplate` is the place to look for accessing functionality such as incrementing counters or ad-hoc CRUD operations. `MongoTemplate` also provides callback methods so that it is easy for you to get a hold of the low level API artifacts such as `com.mongo.DB` to communicate directly with MongoDB. The goal with naming conventions on various API artifacts is to copy those in the base MongoDB Java driver so you can easily map your existing knowledge onto the Spring APIs.
0 commit comments