Mark Paluch
8930091b33
Release version 3.2.2 (2021.0.2).
...
See #3650
3.2.2
2021-06-22 15:52:27 +02:00
Mark Paluch
b1d750efed
Prepare 3.2.2 (2021.0.2).
...
See #3650
2021-06-22 15:51:38 +02:00
Mark Paluch
7a19593f02
Updated changelog.
...
See #3650
2021-06-22 15:51:33 +02:00
Mark Paluch
9021445ccd
Updated changelog.
...
See #3649
2021-06-22 15:29:52 +02:00
Mark Paluch
db92c37502
Update reference docs to use correct MongoClient.
...
Closes #3666
2021-06-22 14:37:02 +02:00
larsw
99e5e2596e
Add closing quote to GeoJson javadoc.
...
Closes #3677
2021-06-21 13:58:40 +02:00
Christoph Strobl
d0bf0e2e62
Fix field projection value conversion.
...
The field projection conversion should actually only map field names and avoid value conversion. In the MongoId case an inclusion parameter (1) was unintentionally converted into its String representation which causes trouble on Mongo 4.4 servers.
Fixes : #3668
Original pull request: #3678 .
2021-06-21 13:45:54 +02:00
Christoph Strobl
28efb3afbe
Polishing.
...
Fix typo in class name and make sure MongoTestTemplate uses the configured simple types.
See: #3659
Original pull request: #3661 .
2021-06-18 14:27:18 +02:00
Christoph Strobl
99eb849c93
Fix query mapper path resolution for types considered simple ones.
...
spring-projects/spring-data-commons#2293 changed how PersistentProperty paths get resolved and considers potentially registered converters for those, which made the path resolution fail in during the query mapping process.
This commit makes sure to capture the according exception and continue with the given user input.
Fixes : #3659
Original pull request: #3661 .
2021-06-18 14:13:33 +02:00
Christoph Strobl
d33aa682e5
Fix $or / $nor keyword mapping in query mapper.
...
This commit fixes an issue with the pattern used for detecting $or / $nor which also matched other keywords like $floor.
Closes : #3635
Original pull request: #3637 .
2021-06-18 13:49:37 +02:00
Mark Paluch
f6db089f6f
Polishing.
...
Add nullability annotation. Return early on null value conversion.
See #3633
Original pull request: #3643 .
2021-06-09 14:14:49 +02:00
Christoph Strobl
13ae5e17bb
Fix NPE in QueryMapper when trying to apply target type on null value.
...
Closes #3633
Original pull request: #3643 .
2021-06-09 14:14:44 +02:00
Mark Paluch
ee203bf22a
Polishing.
...
Reformat code.
See #3660 .
Original pull request: #3662 .
2021-06-09 11:34:20 +02:00
Christoph Strobl
990696ba11
Fix conversion for types having a converter registered.
...
Fixes : #3660
Original pull request: #3662 .
2021-06-09 11:33:34 +02:00
Mark Paluch
4bc2f108fe
After release cleanups.
...
See #3629
2021-05-14 12:34:20 +02:00
Mark Paluch
5064ba5b24
Prepare next development iteration.
...
See #3629
2021-05-14 12:34:16 +02:00
Mark Paluch
1179ded140
Release version 3.2.1 (2021.0.1).
...
See #3629
3.2.1
2021-05-14 12:23:55 +02:00
Mark Paluch
e12700c00b
Prepare 3.2.1 (2021.0.1).
...
See #3629
2021-05-14 12:23:21 +02:00
Mark Paluch
0507adab20
Updated changelog.
...
See #3629
2021-05-14 12:23:14 +02:00
Mark Paluch
375ddf8afb
Updated changelog.
...
See #3628
2021-05-14 12:06:39 +02:00
Mark Paluch
283cf06dc1
Introduce template method for easier customization of fragments.
...
Closes #3638 .
2021-04-27 10:46:01 +02:00
Greg L. Turnquist
10a8456581
Authenticate with artifactory.
...
See #3616 .
2021-04-22 15:01:43 -05:00
Clément Petit
e751a43cdf
Fix bullet points in aggregation framework reference documentation.
...
Closes : #3632
2021-04-20 08:22:33 +02:00
Mark Paluch
c987ba5f83
After release cleanups.
...
See #3616
2021-04-14 14:30:40 +02:00
Mark Paluch
950bae0306
Prepare next development iteration.
...
See #3616
2021-04-14 14:30:36 +02:00
Mark Paluch
5d3a3e1fe2
Release version 3.2 GA (2021.0.0).
...
See #3616
3.2.0
2021-04-14 14:18:47 +02:00
Mark Paluch
e71ec4fc41
Prepare 3.2 GA (2021.0.0).
...
See #3616
2021-04-14 14:18:21 +02:00
Mark Paluch
f065e295e9
Updated changelog.
...
See #3616
2021-04-14 14:18:16 +02:00
Mark Paluch
d23e1b3247
Updated changelog.
...
See #3617
2021-04-14 11:43:30 +02:00
Mark Paluch
a1e8e6f3bc
Updated changelog.
...
See #3597
2021-04-14 11:17:39 +02:00
Mark Paluch
e4030197e8
Polishing.
...
Fix nullability annotations for isEqual(…) parameters. Fix generics. Reformat code.
Add tests.
See #3414
Original pull request: #3615 .
2021-04-13 09:39:33 +02:00
Clement Petit
2885c35511
Handle nested Pattern and Document in Criteria.equals(…).
...
Closes #3414
Original pull request: #3615 .
2021-04-13 09:39:16 +02:00
Mark Paluch
a2a33390b6
Polishing.
...
Use ObjectUtils for empty check.
See #3623
Original pull request: #3625 .
2021-04-13 09:09:33 +02:00
Christoph Strobl
bf606bcc47
Fix NPE in declarative aggregation execution.
...
This commit fixes an issue where using a simple return type leads to NPE when the actual aggregation result does not contain any values.
Closes : #3623
Original pull request: #3625 .
2021-04-13 09:09:29 +02:00
Christoph Strobl
e91809957d
Upgrade to MongoDB Java Drivers 4.2.3
...
Closes : #3621
2021-04-09 12:49:47 +02:00
Christoph Strobl
313a7b86e8
Fix query mapping resolution of properties using underscore within field name.
...
Closes : #3601
Original pull request: #3607 .
2021-04-09 12:26:01 +02:00
Mark Paluch
9d7473487f
Upgrade to MongoDB 4.4 on CI.
...
Closes #3612 .
2021-04-08 17:13:49 +02:00
Mark Paluch
2734a7d8d4
Guard tests against unsupported MongoDB versions used for tests.
...
See #3583
2021-04-08 16:13:13 +02:00
Mark Paluch
0f85808531
Updated changelog.
...
See #3598
2021-03-31 18:30:43 +02:00
Mark Paluch
7c0afda0a6
After release cleanups.
...
See #3595
2021-03-31 17:24:05 +02:00
Mark Paluch
dbe17249b7
Prepare next development iteration.
...
See #3595
2021-03-31 17:24:03 +02:00
Mark Paluch
cfe0baadd1
Release version 3.2 RC1 (2021.0.0).
...
See #3595
3.2.0-RC1
2021-03-31 17:05:07 +02:00
Mark Paluch
8d0143ad76
Prepare 3.2 RC1 (2021.0.0).
...
See #3595
2021-03-31 17:04:34 +02:00
Mark Paluch
43fee26950
Updated changelog.
...
See #3595
2021-03-31 17:04:28 +02:00
Mark Paluch
70145a4c86
Use StringUtils.replace(…) instead of String.replaceAll(…) for mapKeyDotReplacement.
...
We now use StringUtils.replace(…) to replace the map key dot in MappingMongoConverter. StringUtils perform a plain search instead of using Regex which improves the overall performance.
Closes #3613
2021-03-30 14:29:44 +02:00
Mark Paluch
f7a90e93c5
Polishing.
...
Omit StreamUtils usage if input is a collection. Remove superfluous Flux.from(…). Simplify test and migrate test to JUnit 5.
See #3609 .
Original pull request: #3611 .
2021-03-29 10:55:29 +02:00
Clément Petit
3e78ce212a
Return saved entity reference instead of original reference.
...
Make SimpleReactiveMongoRepository#saveAll(Publisher<S>) return the saved entity references instead of the original references.
Closes #3609
Original pull request: #3611 .
2021-03-29 10:55:20 +02:00
Christoph Strobl
5a87dec2d5
Rename Embedded annotation to Unwrapped.
...
The meaning of embedding a Document in MongoDB is different compared to column based stores. Typically the term is used for a Document in Document approach and not for flattening out a values into the enclosing Document.
Closes : #3600
Original pull request: #3604 .
2021-03-26 14:42:27 +01:00
Mark Paluch
f4556406bd
Polishing.
...
Reorder methods. Tweak Javadoc and documentation wording. Mention projection expressions in the what's new section. Reformat code.
See #3583
Original pull request: #3585 .
2021-03-18 12:09:09 +01:00
Christoph Strobl
af6d1eff0c
Support expressions in query field projections.
...
// explicit via dedicated AggregationExpression
query.fields()
.project(StringOperators.valueOf("name").toUpper())
.as("name");
// with a user provided expression parsed from a String
query.fields().project(MongoExpression.create("'$toUpper' : '$name'"))
.as("name")
// using SpEL support
query.fields().project(AggregationSpELExpression.expressionOf("toUpper(name)"))
.as("name");
// with parameter binding
query.fields().project(
MongoExpression.create("'$toUpper' : '?0'").bind("$name")
).as("name")
// via the @Query annotation on repositories
@Query(value = "{ 'id' : ?0 }", fields = "{ 'name': { '$toUpper': '$name' } }")
Closes : #3583
Original pull request: #3585 .
2021-03-18 12:03:30 +01:00