Commit Graph

3874 Commits

Author SHA1 Message Date
Mark Paluch
e08cf353ab Refactor DocumentAccessor, consider readNull/writeNull for null values.
Original pull request: #4728
See #4710
2024-08-28 13:50:51 +02:00
Christoph Strobl
2e503cd22b Consider null value settings for types with custom conversion.
This commit fixes an issue where settings regarding storage of null values had been ignored if a custom converter took care of the conversion.

Original pull request: #4728
Closes #4710
2024-08-28 13:50:50 +02:00
Mark Paluch
28ec15b4e7 Use ReflectionUtils.isVoid(…) to whether Kotlin coroutines should return a value.
We now use a different utility method that is aware of whether a return type maps to Kotlin's Unit to indicate a void return type.

Previously, we only checked for Java's void types.

Closes #4772
2024-08-28 13:35:39 +02:00
Mark Paluch
18af599b32 Update GitHub Actions.
See #4702
2024-08-21 09:28:21 +02:00
Mark Paluch
3ef3e70eec Upgrade to MongoDB driver 5.1.3.
Closes #4767
2024-08-12 08:29:16 +02:00
Christoph Strobl
d70508edcf Add support for using custom BeanNameGenerator.
Closes: #4756
2024-08-09 10:30:14 +02:00
Eric Haag
1dccb98129 Migrate build to Spring Develocity Conventions extension.
* Migrate build to Spring Develocity Conventions extension.

* Adopt Develocity environment variables.

Closes #4752
2024-08-08 15:00:48 +02:00
Mark Paluch
4ec5439cf8 Upgrade to Maven Wrapper 3.9.8.
See #4766
2024-08-08 10:22:01 +02:00
Mark Paluch
0e76166768 Update CI properties.
See #4702
2024-08-08 10:20:10 +02:00
Mark Paluch
7c81b2c83f Bundle Javadoc with Antora documentation site.
Closes #4754
2024-07-31 10:46:15 +02:00
Christoph Strobl
f81d29a6c7 Adapt to upcoming changes in core framework.
This commit makes sure to move off deprecated API and changes event listener generics in tests to comply with java assignability rules.

Closes: #4749
2024-07-24 12:16:06 +02:00
Mark Paluch
404fde7d5b Add copy constructor to BasicQuery.
Removes the need for proxying.

Original pull request: #4747
See #4744
2024-07-23 09:06:56 +02:00
Christoph Strobl
24ea7ac1f7 Generate proxy and register reflection for default sorting during AOT.
This commit makes sure to generate required cglib proxies during AOT phase so they are ready to use within a native image. Prior to this change default sorting raised an error as class generation is not allowed in a GraalVM native image.

Original pull request: #4747
Closes #4744
2024-07-23 09:06:27 +02:00
junhyungjang
946492a4ec Upgrade to MongoDB 5.1.2 driver.
Closes: #4741
Original Pull Request: #4743
2024-07-16 16:55:31 +02:00
Mark Paluch
1545e184ef Apply unwrapped persistent property equality check to delegate.
We now compare the other object whether it equals the delegate in case UnwrappedMongoPersistentProperty.equals is being called with the MongoPersistentProperty retrieved from a MappingContext.

This ensures that unwrapped properties can be compared to vanilla MongoPersistentProperty instances when checking constructor/creator method correlation of parameters.

Closes #4732
2024-06-27 09:30:38 +02:00
Mark Paluch
4c04aabbbf Remove Slack notification hook.
See #4731
2024-06-20 09:57:56 +02:00
Mark Paluch
30b3f7b23f Switch to Broadcom docker proxy.
Closes #4731
2024-06-20 09:57:52 +02:00
ksshlee
7bff547473 Update error codes file reference.
Update documentation link from error_codes.err to error_codes.yml.

Closes #4729
2024-06-19 14:43:39 +02:00
Mark Paluch
cba4b9dba4 Retain Field Lookup Policy when exposing aggregation fields.
Introduce FieldLookupPolicy and methods to create field-exposing/inheriting AggregationOperationContexts.

Move off RelaxedTypeBasedAggregationOperationContext.

See #4714
Original pull request: #4720
2024-06-13 11:07:41 +02:00
Christoph Strobl
daec5d8b47 Configure relaxed/strict field lookup when creating AggregationOperationContext.
Closes #4714
Original pull request: #4720
2024-06-13 11:07:41 +02:00
Mark Paluch
1f94b36baa Polishing.
Avoid duplicate query mapping for document replacement operations when the filter query can be determined from the already mapped _id field.

See #4707
Original pull request: #4719
2024-06-12 15:25:03 +02:00
Christoph Strobl
908e87b593 Fix id conversion for fields of complex id.
This commit fixes an issue where the property type for nested fields of an complex id is not handed over correctly leading to wrong conversion results eg. for Instant types that got then turned into ObjectIds.

Closes #4707
Original pull request: #4719
2024-06-12 15:25:03 +02:00
Mark Paluch
2e59acc6f8 Polishing.
Simplify reactive composition. Switch to eager operator evaluation.

See #4712
Original pull request: #4717
2024-06-12 09:57:43 +02:00
Christoph Strobl
434a8e6c29 Avoid multiple converter calls when parsing string aggregation stages.
Parsing of string based aggregations lead to multiple invocations of potential converters due to missing reuse of bound parameter value as well as attempts to verify out/merge stages within the pipeline that triggered the stage to be converted into the target document.
The changes in this commit, reduce the number down to 2. One for examining potential expression dependencies and one for the actual conversion and parameter binding.

See #4712
Original pull request: #4717
2024-06-12 09:57:42 +02:00
Mark Paluch
b10905a0b1 Polishing.
Reformat code, revise nullability declarations.

See #4709
Original pull request: #4721
2024-06-11 15:17:16 +02:00
Christoph Strobl
8ffa40c407 Apply type conversion to id types.
This commit makes sure to convert the generated query into the target type.

Closes #4709
Original pull request: #4721
2024-06-11 15:17:16 +02:00
Mark Paluch
3ad09242c1 Polishing.
Invert types to retain check to avoid double negation.

See #4674
Original pull request: #4718
2024-06-11 09:36:48 +02:00
Christoph Strobl
03de6f0e5a Fix conversion of regular expression in queries.
This commit fixes an issue where patterns targeting id properties might have been falsely converted into the properties type, turning a Pattern into it's string representation.

Closes #4674
Original pull request: #4718
2024-06-11 09:36:48 +02:00
Mark Paluch
6d5762dcfc After release cleanups.
See #4690
2024-05-17 11:51:34 +02:00
Mark Paluch
8fec72cf7d Prepare next development iteration.
See #4690
2024-05-17 11:51:32 +02:00
Mark Paluch
286404d968 Release version 4.3 GA (2024.0.0).
See #4690
2024-05-17 11:49:25 +02:00
Mark Paluch
3f8950ab02 Prepare 4.3 GA (2024.0.0).
See #4690
2024-05-17 11:49:10 +02:00
Mark Paluch
c2c3bc3c5b Polishing.
Add missing Override annotations. Remove superfluous final keywords.
Original Pull Request: #4699
2024-05-16 13:17:23 +02:00
Mark Paluch
d7549f4fea Use collection name instead type to look up the collection for index creation.
Closes: #4698
Original Pull Request: #4699
2024-05-16 13:17:23 +02:00
Mark Paluch
7821c2a545 Polishing.
Refine wording about Id field naming.

See #4694
2024-05-14 15:33:40 +02:00
Renke Christian von Seggern
1f0ac9f2bd Polishing.
Various typo fixes and wording improvements.

Closes #4694
2024-05-14 15:33:36 +02:00
Mark Paluch
e5b5c5e3ef Polishing.
Reformat code. Remove superfluous warning suppressions.

See #4687
Original pull request: #4695
2024-05-14 15:25:35 +02:00
Christoph Strobl
cdd4a01391 Fix NPE when rendering untyped aggregation operation as part of criteria query.
Resolves: #4687
Original pull request: #4695
2024-05-14 15:25:33 +02:00
Mark Paluch
27c812e09c After release cleanups.
See #4662
2024-04-12 10:52:59 +02:00
Mark Paluch
3c664e6e77 Prepare next development iteration.
See #4662
2024-04-12 10:52:58 +02:00
Mark Paluch
aeba0e73bb Release version 4.3 RC1 (2024.0.0).
See #4662
2024-04-12 10:50:41 +02:00
Mark Paluch
7af8fa929d Prepare 4.3 RC1 (2024.0.0).
See #4662
2024-04-12 10:50:27 +02:00
Mark Paluch
49a3be60b7 Polishing.
Add Override annotations and comment why we optimize.

See #4612
Original pull request: #4613
2024-04-11 08:35:05 +02:00
Christoph Strobl
dd9f0bcbee Polishing.
Wrap no results predicate in dedicated lookup filter and make sure to omit loading attempt also for map properties.

See #4612
Original pull request: #4613
2024-04-11 08:35:01 +02:00
Stefan Bildl
521fcb18b9 Skip reference lookup when DocumentReference resolves to an empty collection.
Fixes #4612
Original pull request: #4613
2024-04-11 08:34:29 +02:00
Mark Paluch
f2f81e895b Polishing.
Consistent log field ordering, serialize sort safely.

See #4686
Original pull request: #4679
2024-04-10 16:08:26 +02:00
Henry Kim
808d282ecd Add sort to query debug logging.
Closes #4686
Original pull request: #4679
2024-04-10 16:08:08 +02:00
Christoph Strobl
be3372ba0a Align OffsetScrolling to zero-based indexes.
Closes: #4673
Original pull request: #4678
2024-04-10 10:44:16 +02:00
Christoph Strobl
abbe4f308d Upgrade to MongoDB 5.0.1 driver.
Closes: #4680
2024-04-04 10:55:07 +02:00
Christoph Strobl
d294d50407 Polishing.
Update javadoc to reflect recent changes and split tests.

Original Pull Request: #4666
2024-03-19 13:04:35 +01:00