4080 Commits

Author SHA1 Message Date
Ricardo Mello
f5570aa6bb Update Documentation.
Updated code sample so that it includes the required `keyId(...)` configuration for Queryable Encryption using the Range algorithm.

Closes: #4991

Signed-off-by: Ricardo Mello <ricardohsmello@gmail.com>
2025-06-13 07:47:36 +02:00
Mark Paluch
313ee26c27 Polishing.
Replace if statement with ternary operator.

See #4994
2025-06-11 14:45:35 +02:00
michaldo
bcbdc71edb Always include Collection tag in MongoDB observations.
Use default "none" collection name when command doesn't define a collection.

Signed-off-by: michaldo <michaldo@github.io>
Closes: #4994
2025-06-11 14:45:35 +02:00
Christoph Strobl
2a82550952 Upgrade to MongoDB driver 5.5.1
Closes: #4996
2025-06-10 08:03:03 +02:00
Mark Paluch
ba15b53e4c Polishing.
Fix test.

See #4988
Original pull request: #4992

# Conflicts:
#	spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/CollectionOptions.java
#	spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/schema/QueryCharacteristics.java
2025-06-05 09:28:32 +02:00
Mark Paluch
96c2e710e6 Polishing.
Fix Javadoc, make QueryCharacteristics a Streamable for easier usage during mapping, reformat code for reduced nesting levels.

See #4988
Original pull request: #4992
2025-06-04 15:13:50 +02:00
Christoph Strobl
194746a9ed Add support for non-queryable encrypted fields in CollectionOptions.
Closes #4988
Original pull request: #4992
2025-06-04 15:13:50 +02:00
Christoph Strobl
5d5e4748bf Fix missing precision value when creating encryption settings.
Original pull request: #4993
Closes: #4989
2025-06-04 14:53:07 +02:00
Mark Paluch
fca17fc961 Polishing.
Guard Queryable Encryption tests against standalone server usage.

Original pull request: #4986
See #4969
2025-06-02 09:48:26 +02:00
Christoph Strobl
91f613749f Update $out stage rendering to documented format.
This commit makes sure to use the documented command format when rendering the $out aggregation stage.

Original pull request: #4986
Closes #4969
2025-06-02 09:48:21 +02:00
Mark Paluch
4e53fa792e Add createCollection(…) overload accepting a customizer function for CollectionOptions.
Original Pull Request: #4979
2025-05-28 10:27:57 +02:00
Mark Paluch
172a7d1940 Document createCollection(…) annotation usage.
Update documentation.

Closes: #4978
Original Pull Request: #4979
2025-05-28 10:27:57 +02:00
Christoph Strobl
d7ff6b1b66 Initialize Lists holding GeoJson coordinates with size where possible.
See: #4904
2025-05-28 10:13:29 +02:00
정보교 (Bogus Jung)
532dd289ed Improve ArrayList capacity allocation in GeoJson.
Closes: #4904
Original Pull Request: #4905

Signed-off-by: 정보교 (Bogus Jung) <bogusjung0317@gmail.com>
2025-05-28 09:41:04 +02:00
Hyunsang Han
c57581f6d2 Change return type of UpdateDefinition.isIsolated to primitive.
Switch return from Boolean to boolean.

Closes: #4922
Original Pull Request: #4981

Signed-off-by: Hyunsang Han <gustkd3@gmail.com>
2025-05-28 08:40:59 +02:00
Mark Paluch
9a40b7e701 Polishing.
Fix contract annotations, add missing Override annotations, make fields final where possible.

See: #4874
Original Pull Request: #4977
2025-05-19 15:49:54 +02:00
Mark Paluch
e368a42484 After release cleanups.
See #4956
2025-05-16 14:18:48 +02:00
Mark Paluch
a11719405b Prepare next development iteration.
See #4956
2025-05-16 14:18:46 +02:00
Mark Paluch
614c1b2eef Release version 5.0 M3 (2025.1.0).
See #4956
2025-05-16 14:16:17 +02:00
Mark Paluch
4ff7a30de1 Prepare 5.0 M3 (2025.1.0).
See #4956
2025-05-16 14:15:55 +02:00
Christoph Strobl
c78a0e86ca Update nullable contract and add issue references.
Original Pull Request: #4970
2025-05-16 12:30:28 +02:00
Mark Paluch
ec218807b3 Add repository benchmarks.
See: #4939
Original Pull Request: #4970
2025-05-16 12:30:28 +02:00
Mark Paluch
2e52276f39 Fix aggregation streams, count result conversion.
See: #4939
Original Pull Request: #4970
2025-05-16 12:30:28 +02:00
Mark Paluch
0e606d26bf Add AOT support for dynamic projections, streaming/scroll queries and Meta annotation.
Closes: #4970
2025-05-16 12:30:28 +02:00
Mark Paluch
95e0ec3b08 Polishing.
Use weaker test visibility.

See #4967
2025-05-16 12:30:28 +02:00
Mark Paluch
b0d8a55cd0 Implement RepositoryFactorySupport.getEntityInformation(RepositoryMetadata) instead of private overload.
Overriding the proper variant of EntityInformation is now possible because we no longer utilize a private method in addition to the public one leading to partial customization of EntityInformation.

Closes #4967
2025-05-16 12:30:27 +02:00
Mark Paluch
aaf864f6b1 Polishing.
See #4960
2025-05-16 12:30:27 +02:00
Mark Paluch
15c24d13c3 Remove MongoDB 6.0 docker build.
See #4956
2025-05-16 12:30:27 +02:00
Mark Paluch
405c2ebe14 Update CI Properties.
See #4956
2025-05-16 12:30:27 +02:00
Christoph Strobl
21568c84eb Polishing.
Original Pull Request: #4960
2025-05-16 12:30:27 +02:00
Mark Paluch
eab7aae16c Add support for returning SearchResult from repository query methods.
Closes: #4960
2025-05-16 12:30:27 +02:00
Mark Paluch
d850b9ef06 Use LocalVariableNameFactory to avoid parameter name clashes.
Closes #4965
2025-05-16 12:30:26 +02:00
Christoph Strobl
a0dc9d0ced Add missing issue reference to tests.
Also reduce logging to war for AOT generation.

Original Pull Request: #4949
2025-05-16 12:30:26 +02:00
Christoph Strobl
50aca14d1f Support QueryResultConverter for reactive delete, replace and update operations.
Original Pull Request: #4949
2025-05-16 12:30:26 +02:00
Mark Paluch
51d64c3768 Polishing.
Fix generics. Update since tags. Add GH ticket references.
Use literal null instead of code null in javadoc.

Original Pull Request: #4949
2025-05-16 12:30:26 +02:00
Christoph Strobl
ec49c14bb9 Support QueryResultConverter for delete, replace and update operations.
Original Pull Request: #4949
2025-05-16 12:30:26 +02:00
Mark Paluch
ed7943a949 Polishing.
Original Pull Request: #4949
2025-05-16 12:30:26 +02:00
Mark Paluch
fb3382fac3 Add support for fluent QueryResultConverter.
Closes: #4949
2025-05-16 12:30:26 +02:00
Christoph Strobl
b2d9547b71 Update issue reference in tests.
Original Pull Request: #4964
2025-05-16 12:30:25 +02:00
Mark Paluch
5d4b8d8230 Adopt to AOT changes in Commons.
Closes: #4964
2025-05-16 12:30:25 +02:00
Mark Paluch
ba3445c5be After release cleanups.
See #4884
2025-05-16 12:30:25 +02:00
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
Mark Paluch
344a4d92c7 Prepare 5.0 M2 (2025.1.0).
See #4884
2025-05-16 12:30:24 +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