Commit Graph

3027 Commits

Author SHA1 Message Date
Mark Paluch
bf760a57e0 Prepare next development iteration.
See #4884
2025-05-16 12:30:25 +02:00
Mark Paluch
4802deb141 Release version 5.0 M2 (2025.1.0).
See #4884
2025-05-16 12:30:25 +02:00
Christoph Strobl
01c586c945 Remove package-info from empty directory.
JMX support has been removed but unfortunately when merging changes for jspecify the package-info.java file sneaked back in.

See: #4940
2025-05-16 12:30:14 +02:00
Christoph Strobl
829383022d Fix nullable annotations.
Transition nullable annotations previously missed to jspecify.

See: #4874
2025-05-16 12:30:14 +02:00
Christoph Strobl
6c6438ec21 Extend AOT Repository Support.
- Introduce AOT fragment base class.
- Refactor Delete execution to be reusable.
- Add support for updates.
- Add support for aggregations.
- Move types to repository package.
- Update documentation.

See: #4939
2025-05-16 12:30:14 +02:00
Mark Paluch
2aac1a59be Adopt to Commons changes.
See: #4939
2025-05-16 12:30:14 +02:00
Christoph Strobl
69f50c6f72 Add support for MongoDB AOT Repositories.
Initial Support for generating repository source code at build time.

Closes: #4939
2025-05-16 12:30:14 +02:00
Christoph Strobl
13ff2d602c Migrate to JSpecify annotations for nullability constraints.
Closes: #4874
2025-05-16 12:30:14 +02:00
Christoph Strobl
6531bc792b Remove MongoDB driver 4 compatibility.
Closes: #4886
2025-05-16 12:30:13 +02:00
Mark Paluch
0c5a908cf4 Remove JMX support.
Closes #4940
2025-05-16 12:30:13 +02:00
Christoph Strobl
937ea9491d Prepare next development iteration.
See #4836
2025-05-16 12:30:13 +02:00
Christoph Strobl
7348d8e80c Release version 5.0 M1 (2025.1.0).
See #4836
2025-05-16 12:30:13 +02:00
Mark Paluch
30f4d0f632 Remove commons-logging exclusion.
Closes #4870
2025-05-16 12:29:50 +02:00
Mark Paluch
59491d8f36 Adopt to deprecation removals in Commons.
Closes #4837
2025-05-16 12:29:50 +02:00
Mark Paluch
8b924f42e1 After release cleanups.
See #4954
2025-05-16 12:29:41 +02:00
Mark Paluch
4341dcee25 Prepare next development iteration.
See #4954
2025-05-16 11:31:15 +02:00
Mark Paluch
5fcf2ca3a7 Release version 4.5 GA (2025.0.0).
See #4954
2025-05-16 11:28:30 +02:00
Mark Paluch
df3abef717 Polishing.
Refine MongoVector factory methods for a more natural adoption and terminology when creating vectors.

See #4706
2025-05-15 09:27:58 +02:00
Christoph Strobl
e419764023 Skip setting vector search limit if unlimited.
Skip setting limit if unlimited and rely on server side command validation.

Closes: #4963
2025-05-07 11:23:12 +02:00
Christoph Strobl
ee1a94f009 Fix SetOperation.toValueOf rendering for field references.
Use single field reference instead of invalid multi field.

See: #4933
2025-05-05 09:40:42 +02:00
kssumin
f3bd67e12b Fix AddFieldsOperationBuilder to treat String value as Field reference
This commit modifies the AddFieldsOperationBuilder to correctly treat String values as field references.
When a String value is passed, it is now interpreted as a reference to another field, following MongoDB's field reference syntax.

Resolves: #4933
Original Pull Request: #4959

Signed-off-by: kssumin <201566@jnu.ac.kr>
2025-05-05 09:40:33 +02:00
Mark Paluch
dbf8f2d264 Prepare next development iteration.
See #4924
2025-04-22 11:26:47 +02:00
Mark Paluch
706a8ee3ff Release version 4.5 RC1 (2025.0.0).
See #4924
2025-04-22 11:24:11 +02:00
Christoph Strobl
9dee60af15 Polishing.
Update test, since tags, rename method.

Original Pull Requests: #4935 & #4943
2025-04-22 09:33:58 +02:00
Nathan McDonald
5db56b2d4d Add support for sorting simple arrays by direction.
Add method to provide sorting direction to sort array aggregation.

Related to: #4929
Original Pull Request: #4935

Signed-off-by: Nathan McDonald <nathan.mcdonald@uk.ey.com>
2025-04-22 09:33:58 +02:00
Ranzy Blessings
98f871b012 Add support for sorting simple arrays (integers/strings) with SortArray ()
- Added methods `byValueAscending()` and `byValueDescending()` to the SortArray class
  to support sorting simple array types (e.g., integers, strings) in ascending and descending order.
- Updated tests to verify the correct functionality of sorting arrays by value.
- Refactored SortArray to handle sorting of simple types without requiring a property for sorting.

For more details, refer to: https://www.mongodb.com/docs/manual/reference/operator/aggregation/sortArray/

Resolves: #4929
Original Pull Request: #4943

Signed-off-by: Ranzy Blessings <ranzyblessings.inbox@gmail.com>
2025-04-22 09:33:58 +02:00
Mark Paluch
4bd5a1f113 Use awaitility version property.
Closes #4948
2025-04-22 09:33:57 +02:00
Mark Paluch
5eaeb926fd Polishing.
Guard tests for encryption functionality.

Original Pull Request: #4885
2025-04-22 09:33:57 +02:00
Mark Paluch
985bb8bfa5 Polishing.
Initialize MongoId also for reactive insertAll(…).

See: #4944
Original pull request: #4945
2025-04-22 09:33:57 +02:00
Christoph Strobl
34c49e0a06 Fix @MongoId mapping for insertAll.
This commit fixes an issue where id properties annotated with MongoId had not been converted into the desired target type when inserting a collection of objects instead a single one.

Resolves: #4944
Original pull request: #4945
2025-04-22 09:33:57 +02:00
Christoph Strobl
272a062473 Update Javadoc.
Original Pull Request: #4885
2025-04-22 09:33:57 +02:00
Mark Paluch
e89548a846 Polishing.
Original Pull Request: #4885
2025-04-22 09:33:56 +02:00
Christoph Strobl
5235aabf29 Introduce Queryable annotation and add Schema derivation.
This commit decouples queryable encryption from explicit encryption and introduces the Queryable annotation to represent different query types like range and equality.
Additionally it removes value conversion from range encryption and fixes update mapping of range encrypted fields.

Original Pull Request: #4885
2025-04-22 09:33:56 +02:00
Ross Lawley
9b7a4e5a37 Adding queryable encryption range support
Supports range style queries for encrypted fields

Closes: #4185
Original Pull Request: #4885
2025-04-22 09:33:56 +02:00
Mark Paluch
1b629bc887 Use MongoDB BOM for version management.
Closes #4946
2025-04-14 09:39:33 +02:00
Woojin Shin
7a0e60b418 Fix typo in javadoc of MongoOperations.stream.
Signed-off-by: Woojin Shin <wish.in@icloud.com>

Closes #4942
2025-04-09 14:56:31 +02:00
Mark Paluch
0ae2054326 Adopt to deprecated QueryMethod constructor.
Closes #4941
2025-04-09 12:04:41 +02:00
Christoph Strobl
0054952230 Deprecate JMX support.
Original pull request: #4936
Closes #4927
2025-04-09 11:04:57 +02:00
Mark Paluch
6f11c08064 Retrieve MongoDB driver version reflectively.
To avoid inlining of the final/static version value, we're using reflection to look up the version value.

Closes #4937
2025-04-09 08:41:11 +02:00
Mark Paluch
ce50bd5d99 Prepare next development iteration.
See #4898
2025-03-14 09:33:42 +01:00
Mark Paluch
8310e18548 Release version 4.5 M2 (2025.0.0).
See #4898
2025-03-14 09:31:04 +01:00
Mark Paluch
833601d847 Polishing.
Tweak documentation, add since tags. Reformat code, change space indents to tab indents.

See #4911
Original pull request: #4912
2025-03-13 15:10:20 +01:00
audghks1996
673d33a49a Add Kotlin extension to accept Kotlin's Pair in BulkOperations.
Closes #4911
Original pull request: #4912

Signed-off-by: audghks1996 <audghks1996@naver.com>
2025-03-13 15:10:00 +01:00
Mark Paluch
5cb0fa80ea Polishing.
Merge List values in Update. Add tests, reformat code.

See: #4918
Original pull request: #4921
2025-03-12 13:54:36 +01:00
Christoph Strobl
8e9728ca78 Fix basic update overriding values.
This change makes sure basic update appends values to operations instead of overriding them. This change aligns the behaviour with Update and fixes issues where using the Update annotation with versioned entities can lead to loss of update information.

Closes: #4918
Original pull request: #4921
2025-03-12 13:54:35 +01:00
Mark Paluch
31a3b21aa6 Polishing.
Refine documentation. Simplify NumberToNumberConverter. Replace Environment-based configuration with config API.

See: #3444
Original pull request: #4916
2025-03-11 10:50:27 +01:00
Christoph Strobl
2b6730d1da Introduce Configuration for BigDecimal representation.
We now allow configuring the default representation for BigDecimal and BigInteger values, still defaulting to string. BigDecimal can be configured to use Decimal128 by default.

Closes: #3444
Original pull request: #4916
2025-03-11 10:50:11 +01:00
Christoph Strobl
d79031b60d Apply sort to replace and bulk operation updates
Allow using sort parameter from the query for template replace as well as bulk update & replace operations.
We now also mapped fields used in sort to the domain type considering field annotations.
Also updated javadoc and reference documentation.

Original Pull Request: #4888
2025-03-04 09:43:22 +01:00
Florian Lüdiger
019d915fa2 Add query sort parameter for updateFirst method.
Closes: #4797
Original Pull Request: #4888

Signed-off-by: Florian Lüdiger <florian.luediger@googlemail.com>
2025-03-04 09:43:21 +01:00
Mark Paluch
d7c40a4e6f Polishing.
Introduce ReactiveValidatingEntityCallback, extract BeanValidationDelegate. Document Bean Validation callbacks.

See #4901
Original pull request: #4910
2025-03-04 09:43:02 +01:00