Christoph Strobl
6ed274bd9b
Update entity linking support to derive document pointer from lookup query.
...
Simplify usage by computing the pointer from the lookup.
Update the reference documentation, add JavaDoc and refine API.
Original pull request: #3647 .
Closes #3602 .
2021-05-21 14:20:00 +02:00
Mark Paluch
48ac7e75ba
First pass of review polishing.
...
Original pull request: #3647 .
Closes #3602 .
2021-05-21 14:20:00 +02:00
Christoph Strobl
a51c96298f
Enhance support for linking entities.
...
Add initial support for an alternative to the existing DBRef scenario.
The enhancement allows to store and retrieve linked entites via their id or a customizable lookup query.
Original pull request: #3647 .
Closes #3602 .
2021-05-21 14:20:00 +02:00
Mark Paluch
f1354c4508
Revise DocumentCallback nullability constraints.
...
DocumentCallback is now generally non-nullable for both, the input Document and the returned result expecting EntityReader to always return a non-null object.
Also, use try-with-resources where applicable.
Closes #3648
2021-05-18 15:11:06 +02:00
Mark Paluch
ff7588f648
Updated changelog.
...
See #3629
2021-05-14 12:36:34 +02:00
Mark Paluch
124036fe36
Updated changelog.
...
See #3628
2021-05-14 12:06:37 +02:00
Greg L. Turnquist
80c5b536df
Polishing.
2021-05-13 16:15:04 -05:00
Greg L. Turnquist
2ee33b1444
Polishing.
2021-05-13 15:56:39 -05:00
Greg L. Turnquist
eec6cea507
Update CI to JDK 16.
...
See #3603 .
2021-05-13 15:52:30 -05:00
Mark Paluch
90d03d92d8
Polishing.
...
Let appendLimitAndOffsetIfPresent accept unary operators for adjusting limit/offset values instead of appendModifiedLimitAndOffsetIfPresent. Apply simple type extraction for Slice. Add support for aggregation result streaming.
Extend tests, add author tags, update docs.
See #3543 .
Original pull request: #3645 .
2021-05-11 11:50:40 +02:00
divya_jnu08
9a48e32565
Aggregation query method should be able to return Slice and Stream.
...
Aggregation query methods can not return Slice and Stream.
interface PersonRepository extends CrudReppsitory<Person, String> {
@Aggregation("{ $group: { _id : $lastname, names : { $addToSet : ?0 } } }")
Slice<PersonAggregate> groupByLastnameAnd(String property, Pageable page);
@Aggregation("{ $group: { _id : $lastname, names : { $addToSet : $firstname } } }")
Stream<PersonAggregate> groupByLastnameAndFirstnamesAsStream();
}
Closes #3543 .
Original pull request: #3645 .
2021-05-11 11:50:10 +02:00
Mark Paluch
ede6927b65
Introduce template method for easier customization of fragments.
...
Closes #3638 .
2021-04-27 10:45:43 +02:00
Greg L. Turnquist
2edc29f758
Authenticate with artifactory.
...
See #3616 .
2021-04-22 14:59:20 -05:00
Clément Petit
5bd9bcca75
Fix bullet points in aggregation framework reference documentation.
...
Closes : #3632
2021-04-20 08:19:46 +02:00
Greg L. Turnquist
54f75e653b
Migrate to main branch.
...
See #3616 .
2021-04-16 12:27:26 -05:00
Mark Paluch
7b33f56e33
After release cleanups.
...
See #3616
2021-04-14 14:30:14 +02:00
Mark Paluch
829eed7d6c
Prepare next development iteration.
...
See #3616
2021-04-14 14:30:11 +02:00
Mark Paluch
5d3a3e1fe2
Release version 3.2 GA (2021.0.0).
...
See #3616
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
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
Mark Paluch
191993caef
After release cleanups.
...
See #3558
2021-03-17 11:30:30 +01:00
Mark Paluch
dbed948c73
Prepare next development iteration.
...
See #3558
2021-03-17 11:30:28 +01:00
Mark Paluch
8f232e4983
Release version 3.2 M5 (2021.0.0).
...
See #3558
2021-03-17 11:17:49 +01:00
Mark Paluch
e961d3c995
Prepare 3.2 M5 (2021.0.0).
...
See #3558
2021-03-17 11:17:26 +01:00
Mark Paluch
699d5f40f5
Updated changelog.
...
See #3558
2021-03-17 11:17:23 +01:00
Mark Paluch
4b58ecc041
Updated changelog.
...
See #3561
2021-03-17 11:03:38 +01:00
Mark Paluch
4b8fb812fa
Updated changelog.
...
See #3556
2021-03-17 10:35:11 +01:00
Mark Paluch
78137c882d
Polishing.
...
Move hasValue(…) from DocumentAccessor to BsonUtils. Fix typo in tests.
See: #3590
Original pull request: #3591 .
2021-03-15 14:02:02 +01:00