spring-data-mongodb
spring-data-mongodb copied to clipboard
Provides support to increase developer productivity in Java when using MongoDB. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access...
Resolves #4950 - [x] You have read the [Spring Data contribution guidelines](https://github.com/spring-projects/spring-data-build/blob/master/CONTRIBUTING.adoc). - [x] You use the code formatters provided [here](https://github.com/spring-projects/spring-data-build/tree/master/etc/ide) and have them applied to your changes. Don’t submit...
AOT repositories should be generated by default when using AOT. We already have a config flag to disable AOT repositories to back out from AOT processing.
Following #4672, #2369 and [Spring Data 2024.0 Release](https://github.com/spring-projects/spring-data-commons/wiki/Spring-Data-2024.0-Release-Notes#value-expressions), I expected to be able to use property placeholders in `@Indexed#expireAfter`. However, this is still not possible. SpEL expressions `#{...}` work, as...
This PR modifies `DefaultMessageListenerContainer` to enable auto-startup by default, allowing it to participate more fully in the Spring container-managed lifecycle. Key changes: * Introduced an `autoStartup` boolean property (defaulting to...
Hi @mp911de , the `@Order` of the built-in EntityCallbacks (at the time of writing `AuditingEntityCallback` and `ValidatingEntityCallback`) is not distinctive, both have the same configuration ``` @Override public int getOrder()...
``` [INFO] [08:33:01.434] INFO (asciidoctor): possible invalid reference: mapping.index-creation [INFO] file: src/main/antora/modules/ROOT/pages/mongodb/mapping/mapping.adoc [INFO] source: https://github.com/spring-projects/spring-data-mongodb (branch: 5.0.x | start path: src/main/antora) [INFO] [08:33:01.453] INFO (asciidoctor): possible invalid reference: repositories.limit-query-result [INFO]...
We skip GeoNear, Scrolling, and Streaming methods during AOT processing. We should however extract queries and return these instead of `null` in `MongoRepositoryContributor.contributeQueryMethod(…)`.
https://github.com/spring-projects/spring-data-mongodb/blame/eaa80e3337f4ee42341faecfc886bd5beb9cf285/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/geo/GeoJsonModule.java#L54 Problem: When I create GeoJsonModule with constructor, I have expected that it will register both serializers and deserializers and will correctly serialize geo json objects into json. But this...
How can I check if a field reference/aggregation expression is null and obtain a boolean? - `ConditionalOperators.ifNull("field").then(false)` - does not return true/false - `ComparisonOperators.valueOf("field").equalToValue(null)` - throws NPE - `BooleanOperators.Or.or(Fields.field("field"))` -...