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...
When writing a duration type parameter to the database, Spring defines it as a String after using converters, it can be seen that JRS310Converters.DurationToStringConverter is being used, but I need...
_I had trouble coming up with an issue title that captures the ask here so feel free to edit/suggest_ Despite the myriad of customization options in spring-data-mongodb I believe the...
**[provirus](https://jira.spring.io/secure/ViewProfile.jspa?name=provirus)** opened **[DATAMONGO-2496](https://jira.spring.io/browse/DATAMONGO-2496?redirect=false)** and commented Having the following classes: ```java @Document class Parent { @Id private String id; private Child child; // Getters and setters } class Child { private...
**[Daniel Theuke](https://jira.spring.io/secure/ViewProfile.jspa?name=st-ddt)** opened **[DATAMONGO-2619](https://jira.spring.io/browse/DATAMONGO-2619?redirect=false)** and commented Currently I have to this workaround: ```java when(ComparisonOperators.valueOf("$$child.v").equalTo(ctx -> null)) .then(new Document("type", "$$child.k")) .otherwise(new Document() .append("type", "$$child.k") .append("version", "$$child.v"))) ``` It would be nice...
Related to #3259 (see comments). version: 3.2.5
MappingMongoConverter does not work while convert a field which declared with Map<String ,Object >
In java , version 11..17.RELEASE : A JSONObject would be recognised as a Map . It happen to that JSONObject have a BigDecimal field, so i register a couple of...
Lines: https://github.com/spring-projects/spring-data-mongodb/blob/45971b212c12c67e4233d1b139de06ba088e18ee/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/MappingMongoConverter.java#L1073 https://github.com/spring-projects/spring-data-mongodb/blob/45971b212c12c67e4233d1b139de06ba088e18ee/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/convert/MappingMongoConverter.java#L1074 Why it is checked for String and then ask for conversion for Object and cast to String?
Specifically translate eg. `where("name").is(...).or("name").is(...)` into `$or : [ { "name" : ... }, { "name" : ... } ]`.
I've noticed an inconsistency with how JSR-310 `LocalDate` is converted to mongo dates when it is put into `org.bson.Document`. Reproduction: Using 'org.springframework.boot:spring-boot-starter-data-mongodb:2.5.6' ``` package com.example.demo; import org.bson.Document; import org.hamcrest.Matchers; import...