Mark Paluch
c95e8a5748
Prepare next development iteration.
...
See #3937
2022-03-21 16:44:39 +01:00
Mark Paluch
f0c0a86118
Release version 4.0 M2 (2022.0.0).
...
See #3937
4.0.0-M2
2022-03-21 16:35:08 +01:00
Mark Paluch
3d82e12e6b
Prepare 4.0 M2 (2022.0.0).
...
See #3937
2022-03-21 16:34:37 +01:00
Mark Paluch
8672808222
Polishing.
...
Reformat code. Tweak documentation wording.
See #3596
Original pull request: #3982 .
2022-03-21 09:20:47 +01:00
Christoph Strobl
29fb085d8b
Add support for PropertyValueConverters.
...
Closes : #3596
Original pull request: #3982 .
2022-03-21 09:20:34 +01:00
Mark Paluch
15cac49f9c
Polishing.
...
Refine API naming towards merge/property instead of combine/specify. Tweak documentation. Introduce Resolution.ofValue(…) for easier creation.
See #3870
Original pull request: #3986 .
2022-03-18 14:11:35 +01:00
Christoph Strobl
946deac48c
Support generating JsonSchema for Polymorphic fields.
...
This commit introduces MergedJsonSchema and MergedJsonSchemaProperty that can be used to merge properties of multiple objects into one as long as the additions do not conflict with another (eg. due to usage of different types).
To resolve previously mentioned errors it is required to provide a ConflictResolutionFunction.
Closes #3870
Original pull request: #3986 .
2022-03-18 14:11:35 +01:00
Mark Paluch
02229f291c
Polishing.
...
Reformat code.
See #3998
2022-03-16 16:44:06 +01:00
Mark Paluch
1009491920
Create a new conversion context for projection properties.
...
We now create a new conversion context to ensure that we use the correct property type to avoid type retention when mapping complex objects within a projection.
Closes #3998
2022-03-16 16:29:14 +01:00
Mark Paluch
05730ded1b
Fix CI trigger.
...
Use correct Spring Data Commons version as build trigger.
See #3973
2022-03-15 14:38:54 +01:00
Mark Paluch
612845f59c
Polishing.
...
Extract CreateCollectionOptions conversion to EntityOperations to unify collection creation. Adopt tests.
See #3984
Original pull request: #3990 .
2022-03-11 15:21:05 +01:00
Mark Paluch
1f06954952
Polishing.
...
Add missing Override annotations to template API methods.
See #3984
2022-03-11 15:20:20 +01:00
Christoph Strobl
7bcf0322d2
Propagate time series options correctly.
...
This commit fixes an issue when creating a collection via MongoTemplate without passing on type information. In this case potential time series information was lost.
Closes #3984
Original pull request: #3990 .
2022-03-11 15:18:58 +01:00
Mark Paluch
7dd2f350eb
Polishing.
...
Remove duplicate dependency declaration.
See: #3522
2022-03-11 14:10:49 +01:00
Mark Paluch
e433375cac
Polishing.
...
Reorder methods. Add links to Javadoc. Tweak wording.
See: #3522
Original pull request: #3951 .
2022-03-11 14:09:58 +01:00
Christoph Strobl
d16013aa6b
Allow to estimate document count.
...
This commit introduce an option that allows users to opt in on using estimatedDocumentCount instead of countDocuments in case the used filter query is empty.
To still be able to retrieve the exact number of matching documents we also introduced MongoTemplate#exactCount.
Closes : #3522
Original pull request: #3951 .
2022-03-11 14:06:30 +01:00
Christoph Strobl
dab5473740
Modify visibility of methods in TypedJsonSchemaObject.
...
Change visibility to public as it should have been in first place.
Closes : #3989
2022-03-10 09:23:25 +01:00
sangyongchoi
e6fce75dfd
Remove duplicate condition in GeoConverters.
...
Closes : #3981
2022-03-03 13:29:24 +01:00
Mark Paluch
e75f022844
Update CI properties.
...
See #3937
2022-02-23 14:33:13 -06:00
Christoph Strobl
611ece049b
Serialize values for debug output safely in AbstractMongoEventListener.
...
We now make sure that codec configuration will not cause an exception when debug logging is turned on.
Resolves : #3968
Original Pull Request: #3970
2022-02-18 10:15:28 +01:00
Christoph Strobl
be2286edf7
Update copyright year to 2022.
...
See: #3966
2022-02-17 10:49:44 +01:00
Christoph Strobl
b99648672b
Introduce Update annotation.
...
Switch update execution to an annotation based model that allows usage of both the classic update as well as the aggregation pipeline variant. Add the reactive variant of it.
Make sure to allow parameter binding for update expressions and verify method return types.
Update Javadoc and reference documentation.
See: #2107
Original Pull Request: #284
2022-02-17 10:31:46 +01:00
Thomas Darimont
28708ce24e
Add support for modifying documents via repository method.
...
We now support findAndModify operations on derived query methods.
Closes : #2107
Original Pull Request: #284
2022-02-17 10:29:37 +01:00
Christoph Strobl
1c6c703640
Deprecate mapReduce.
...
Closes : #3945
2022-02-16 14:45:01 +01:00
blu10ph
67b1fe5fbc
Avoid obtaining mapped sort multiple times for mapReduce.
...
Apply already mapped sort for map reduce instead of running the source document through the mapping layer again.
Closes : #3960
2022-02-16 14:42:57 +01:00
Christoph Strobl
4f6501f140
Update GeoJson section in reference documentation.
...
Mention the relation of Point/GeoJsonPoint x/y coordinates to longitude/latitude.
Original Pull Request: #3956
2022-02-16 14:42:19 +01:00
sangyongchoi
2a3f746cb6
Update GeoJsonPoint Javadoc.
...
Mention x -> longitude, y -> latitude relation.
Closes : #3956
2022-02-16 14:41:33 +01:00
Mark Paluch
90b8ba7246
Polishing.
...
Extract docker credentials into properties file.
Use tabs for indentation instead of spaces.
See #3949
2022-02-16 13:36:39 +01:00
Oliver Drotbohm
f12648af4c
Adapt to API changes regarding object creation metadata.
2022-02-15 17:37:58 +01:00
Greg L. Turnquist
e812f89b47
Update CI properties.
...
See #3937
2022-02-15 09:00:21 -06:00
Christoph Strobl
f96d700d8d
Favor Base64Utils over bson internal Base64 type.
...
org.bson.internal.Base64 is no longer available in MongoDB driver 4.5.0.
Related to: #3962
2022-02-14 11:09:26 +01:00
Christoph Strobl
32e7f2032d
Upgrade to MongoDB driver 4.5.0
...
Closes : #3962
2022-02-14 11:09:14 +01:00
Mark Paluch
43ac1984ab
Adapt repository to List-based interface variants.
...
Closes #3964
2022-02-14 11:07:27 +01:00
Greg L. Turnquist
28f262309c
Use Harbor Proxy for containers.
...
Leverage internal infrastructure for pulling Docker container images. Reduces pressure on Docker Hub and reduces risk of hitting rate limits.
See #3954 .
Related https://github.com/spring-projects/spring-data-build/issues/1630 .
2022-02-07 10:59:50 -06:00
Mark Paluch
eefe6b3b21
Update CI properties.
...
See #3937
2022-02-07 09:32:15 +01:00
Mark Paluch
d0f2ca9efc
Polishing.
...
Refine build script.
See #3949
2022-02-04 08:49:49 +01:00
Mark Paluch
e6c8ee037a
Polishing.
...
Extract docker credentials into properties file.
Use tabs for indentation instead of spaces.
See #3949
2022-02-04 08:46:05 +01:00
Christoph Strobl
e63013deac
Remove previously deprecated API.
...
This commit removes and moves off deprecated API.
Additionally some blocks got deprecated due to changes in MongoDB server API.
Resolves : #3952
2022-02-03 16:44:03 +01:00
Mark Paluch
2367379b6d
Use Java 8 Stream as return type for Template operations returning a stream.
...
We now use Stream instead of CloseableIterator for easier stream creation.
Closes : #3944
Original Pull Request: #3946
2022-02-03 08:30:27 +01:00
Mark Paluch
a1c483f2e1
After release cleanups.
...
See #3927
2022-02-03 08:08:50 +01:00
Mark Paluch
64b8b500ae
Prepare next development iteration.
...
See #3927
2022-02-03 08:08:50 +01:00
Mark Paluch
2d15e37bc7
Release version 4.0 M1 (2022.0.0).
...
See #3927
2022-02-03 08:08:50 +01:00
Mark Paluch
54655b88c0
Prepare 4.0 M1 (2022.0.0).
...
See #3927
2022-02-03 08:08:49 +01:00
Jens Schauder
cd395e3324
Remove Eclipse Non-Javadoc comments.
...
Closes #3924
2022-02-03 08:08:00 +01:00
Mark Paluch
33bdbbe851
Polishing.
2022-02-03 08:08:00 +01:00
Christoph Strobl
9f1448df44
Drop support for RxJava 1 and 2.
...
Closes : #3839
2022-02-03 08:08:00 +01:00
Christoph Strobl
e3a4bada63
Move to Jakarta EE9
...
Closes : #3830
2022-02-03 08:08:00 +01:00
Christoph Strobl
dcdf3a2365
Prepare Spring Data MongoDB 4.x branch.
...
Upgrade to data-commons 3.0 and Java 17 (still source level 16 due to asm).
Remove support for threeten, joda-time.
Transition to PersistentEntitiesFactoryBean from data-commons.
Update build to MongoDB 4.4 and 5 with Java17. Remove Java8 setup.
Fix javadoc tooling error on cdi 1 vs. 2 version mix.
Disabled internal package cycle analysis as this requires transition to ArchUnit.
2022-02-03 08:07:59 +01:00
Mihail Cornescu
423e10b7bc
Add IgnoreCase to repository queries documentation.
...
Update reference documentaion and add missing IgnoreCase keyword.
Closes : #3916
Original Pull Request: #3950
2022-02-02 13:13:10 +01:00
Greg L. Turnquist
f62feac421
Externalize build properties.
...
By reading a properties file from an external location, it is possible to inject a consistent set of properties from Spring Data Build. This also supports repeatable builds.
Closes #3949 .
2022-01-31 16:33:45 -06:00