Mark Paluch
d0c2c820d7
DATAMONGO-2464 - Polishing.
...
Apply fix also to reactive MongoDB repository documentation.
Original pull request: #816 .
2020-02-03 11:34:00 +01:00
LiangYong
f69ddb6c61
DATAMONGO-2464 - Fix code examples in reference documentation.
...
fixed repository miss "{" issue.
Original pull request: #816 .
2020-02-03 11:34:00 +01:00
Mark Paluch
073668b1d1
DATAMONGO-2460 - Polishing.
...
Reformat code. Use diamond syntax.
Original pull request: #830 .
2020-02-03 11:25:25 +01:00
Christoph Strobl
291d84591c
DATAMONGO-2460 - Fix target type computation for complex id properties with @Field annotation.
...
We now set the target type to org.bson.Document for id properties annotated with @Field having the implicit target type derived from the annotation. Along the lines we fixed warn message when an id property with explicit (unsupported) field name is detected.
Original pull request: #830 .
2020-02-03 11:25:11 +01:00
Mark Paluch
46806a5606
DATAMONGO-2449 - Polishing.
...
Reformat code. Tweak Javadoc.
Original pull request: #827 .
2020-02-03 11:02:50 +01:00
Christoph Strobl
85519eb84d
DATAMONGO-2449 - Evaluate allowDiskUse added to Meta annotation when executing derived Aggregation.
...
@Meta(allowDiskUse...) allows to set the according aggregation option when executing a String based annotation via a repository definition.
Original pull request: #827 .
2020-02-03 11:02:32 +01:00
Mark Paluch
f8ee9648da
DATAMONGO-2365 - Polishing.
...
Reformat code. Fix method name and generics. Whitespaces.
Original pull request: #828 .
2020-01-29 13:40:42 +01:00
Christoph Strobl
c7f9274480
DATAMONGO-2365 - Extract common functionality to centralized component.
...
Share common code paths between reactive and imperative implementation.
Original pull request: #828 .
2020-01-29 13:40:39 +01:00
Christoph Strobl
0bc0fff24e
DATAMONGO-2365 - Pass on index name to query hint.
...
Original pull request: #828 .
2020-01-29 13:40:28 +01:00
Mark Paluch
c21b35973d
DATAMONGO-2462 - Move off deprecated EntityInstantiators.
...
We now use the newly introduced EntityInstantiator at o.s.d.mapping.model and moved off the deprecated one in o.s.d.convert.
2020-01-29 10:36:45 +01:00
Mark Paluch
44017485fc
DATAMONGO-1997 - Polishing.
...
Tweak documentation. Reformat code. Remove commented code.
Original pull request: #826 .
2020-01-29 10:26:25 +01:00
Christoph Strobl
c56a13ad00
DATAMONGO-1997 - Add support to return the single deleted item for a deleteBy query method.
...
Added support for:
@Nullable
Person deleteSingleByLastname(String lastname);
Optional<Person> deleteByBirthdate(Date birthdate);
Mono<Person> deleteSinglePersonByLastname(String lastname);
Original pull request: #826 .
2020-01-29 10:26:19 +01:00
Mark Paluch
0a2ea88f3c
DATAMONGO-2406 - Polishing.
...
Add optimization for Mono.
Original pull request: #825 .
2020-01-29 09:57:42 +01:00
Christoph Strobl
80da9e21ed
DATAMONGO-2406 - Derived reactive deleteBy query execution should allow Mono<Void> result.
...
Mono<Void> is now a supported return type of derived reactive deleteBy queries like:
Mono<Void> deleteByLastname(String lastname);
Original pull request: #825 .
2020-01-29 09:57:34 +01:00
Mark Paluch
708466b323
DATAMONGO-2459 - Polishing.
...
Slightly tweak wording.
Original pull request: #829
2020-01-29 09:52:38 +01:00
Christoph Strobl
2905315452
DATAMONGO-2459 - Add sample for passing on limit and offset using reactive repositories.
...
Original pull request: #829 .
2020-01-29 09:46:20 +01:00
Christoph Strobl
ecc9f3fd60
DATAMONGO-2457 - Fix id type explanation in repository documentation.
...
Original pull request: #829 .
2020-01-29 09:46:15 +01:00
Mark Paluch
c83929c2a3
DATAMONGO-2427 - Simplify docker setup.
...
Original pull request: #823 .
2020-01-27 11:44:02 +01:00
Mark Paluch
9abf098bdb
DATAMONGO-2427 - Polishing.
...
Guard tests.
Original pull request: #823 .
2020-01-27 11:43:52 +01:00
Mark Paluch
f688cca400
DATAMONGO-2427 - Switch to MongoDB Driver 4.0.0-beta1.
...
Enable disabled tests. Adapt to ReactiveGridFS changes.
Use WriteConcern.MAJORITY in tests.
Original pull request: #823 .
2020-01-27 11:43:52 +01:00
Christoph Strobl
f09c622b2f
DATAMONGO-2427 - Update GridFS API to use MongoDB native ByteBuffer Publisher API and introduce UUID format configuration options.
...
Move from AsyncInputStream handling to Publisher for GridFS.
UUID types require additional configuration setup to prevent errors while processing legacy (type 3) binary types. We still use type 3 as default but allow codec configuration for type 4 via Java and XML configuration.
Updated migration guide.
Original pull request: #823 .
2020-01-27 11:43:52 +01:00
Mark Paluch
6049541d0a
DATAMONGO-2427 - Polishing.
...
Replace leftovers to Mongo 2.x API with Document and MongoDatabase references and tweak Javadoc. Reorder field declarations to class header. Reflect 3.0 versions in schema configuration. Add TODO markers to disabled tests.
Reflect changes in documentation.
Enable disabled test.
Original pull request: #823 .
2020-01-27 11:43:52 +01:00
Mark Paluch
2a3f862703
DATAMONGO-2427 - Rename MongoDbFactory to MongoDatabaseFactory.
...
Rename to follow MongoDB's naming scheme. Re-introduce deprecated MongoDbFactory to aid migration.
Original pull request: #823 .
2020-01-27 11:43:51 +01:00
Christoph Strobl
8b97e932a2
DATAMONGO-2427 - Upgrade to MongoDB 4.0 Driver.
...
This change switches to the MongoDB 4.0 driver and introduces configuration options for com.mongodb.client.MongoClient.
The XML namespace changed from client-options to client-settings and removed already deprecated elements and attributes.
Imports are switched from single artifact uber jar to split imports for driver-core, -sync and -reactivestreams.
Deprecations have been removed.
Original pull request: #823 .
2020-01-27 11:43:51 +01:00
Mark Paluch
5f29bee6c9
DATAMONGO-2419 - Enable JDK 11+ builds.
2020-01-22 21:19:55 -06:00
Mark Paluch
5b8037a0ad
DATAMONGO-2454 - After release cleanups.
2020-01-17 09:47:50 +01:00
Mark Paluch
1a19e140ee
DATAMONGO-2454 - Prepare next development iteration.
2020-01-17 09:47:49 +01:00
Mark Paluch
83307c424f
DATAMONGO-2454 - Release version 3.0 M2 (Neumann).
2020-01-17 09:39:03 +01:00
Mark Paluch
8394523645
DATAMONGO-2454 - Prepare 3.0 M2 (Neumann).
2020-01-17 09:38:43 +01:00
Mark Paluch
62be436569
DATAMONGO-2454 - Updated changelog.
2020-01-17 09:38:37 +01:00
Mark Paluch
44e6f5fa3f
DATAMONGO-2383 - After release cleanups.
2020-01-16 16:11:55 +01:00
Mark Paluch
f2fb05662f
DATAMONGO-2383 - Prepare next development iteration.
2020-01-16 16:11:54 +01:00
Mark Paluch
a1fbe31551
DATAMONGO-2383 - Release version 3.0 M1 (Neumann).
2020-01-16 16:05:23 +01:00
Mark Paluch
fca1a79f81
DATAMONGO-2383 - Prepare 3.0 M1 (Neumann).
2020-01-16 16:05:03 +01:00
Mark Paluch
cbf87e6e49
DATAMONGO-2383 - Updated changelog.
2020-01-16 16:04:59 +01:00
Mark Paluch
af133c26d0
DATAMONGO-2432 - Updated changelog.
2020-01-15 12:51:13 +01:00
Christoph Strobl
ab5b1f0140
DATAMONGO-2451 - Fix value conversion for id properties used in sort expression.
...
Previously we falsely converted the sort value (1/-1) into the id types target value when a Field annotation had been present.
Original pull request: #822 .
2020-01-15 11:51:42 +01:00
Mark Paluch
3a5876537b
DATAMONGO-2431 - Updated changelog.
2020-01-15 10:36:36 +01:00
Mark Paluch
48f51d0fb0
DATAMONGO-2450 - Polishing.
...
Replace stream with for-loop.
Original pull request: #820 .
2020-01-15 10:15:14 +01:00
Christoph Strobl
fb499f8c69
DATAMONGO-2450 - Apply array filters to bulk write.
...
Original pull request: #820 .
2020-01-15 10:15:06 +01:00
Mark Paluch
bcc2c94e03
DATAMONGO-2440 - Polishing.
...
Replace SpringJUnit4ClassRunner with SpringRunner.
Original pull request: #821 .
2020-01-15 09:30:12 +01:00
Mark Paluch
284f547e99
DATAMONGO-2437 - Polishing.
...
Mention changes in Aggregation _id handling in what's new. Reformat code.
Original pull request: #821 .
2020-01-15 09:30:09 +01:00
Christoph Strobl
d824f3b8b2
DATAMONGO-2437 - Fix complex id handling when reading aggregation results.
...
Removed Unwrapping complex id values.
Template.aggregate now behaves like aggregateStream or its reactive counterpart.
Original pull request: #821 .
2020-01-15 09:30:07 +01:00
Christoph Strobl
7b1a96f4a9
DATAMONGO-2448 - Bump version to 3.0 SNAPSHOT.
...
In preparation for the upcoming breaking changes when switching to the MongoDB Java Driver 4.0 and the breaking changes required for that update (expected for Milestone 2), we eagerly bump the version number to 3.0.
Original pull request: #819 .
2020-01-13 14:29:09 +01:00
Christoph Strobl
4f75fec5c5
DATAMONGO-2447 - Upgrade MongoDB Drivers to 3.12.0 (sync) and 1.13.0 (reactive).
2020-01-10 11:22:49 +01:00
Mark Paluch
61bd56dd74
DATAMONGO-2442 - Polishing.
...
Reduce visibility of test methods for JUnit 5 tests.
Original pull request: #818 .
2020-01-08 15:12:47 +01:00
Christoph Strobl
b4222c5646
DATAMONGO-2442 - Polishing.
...
Transition touched test classes to JUnit Jupiter.
Original pull request: #818 .
2020-01-08 15:12:44 +01:00
Christoph Strobl
4a45928aee
DATAMONGO-2442 - Fix thenValueOf in $cond builder.
...
We now create a field reference when calling the builder instead of using the value as is.
Original pull request: #818 .
2020-01-08 15:12:23 +01:00
Mark Paluch
e2200eccf7
DATAMONGO-2440 - Polishing.
...
Iterate over List instead of using the Stream API.
Reduce visibility of JUnit 5 test methods. Consolidate assertions.
Original pull request: #817 .
2020-01-08 15:01:57 +01:00
Christoph Strobl
96c4901e7f
DATAMONGO-2440 - Fix field target type conversion for collection values.
...
We now preserve the collection nature of the source type when applying custom target type conversions. Prior to this change collection values had been changed to single element causing query errors in MongoDB when using $in queries.
Original pull request: #817 .
2020-01-08 15:01:44 +01:00