Top "Spring-data-mongodb" questions

Spring Data for MongoDB is part of the Spring Data project which provides a familiar and consistent Spring-based programming model for new datastores while retaining store-specific features and capabilities.

Spring Data mongo case insensitive like query

I want to make a text search case insensitive with regex query with spring-data mongo . For example in Oracle : select * …

full-text-search mongodb-query spring-data-mongodb
MongoException: Index with name: code already exists with different options

I have a mongodb collection term with following structure { "_id" : "00002c34-a4ca-42ee-b242-e9bab8e3a01f", "terminologyClass" : "…

mongodb spring-data-mongodb mongodb-java mongodb-indexes
Spring data MongoDb: MappingMongoConverter remove _class

The default MappingMongoConverter adds a custom type key ("_class") to each object in the database. So, if I create a …

mongodb spring-data spring-data-mongodb
Exclude some fields of Spring-data-rest resource

I'm trying to use Spring-data-rest with spring-data-mongodb to expose read-only resources. The problem I met, is that I want to …

java spring-data-mongodb spring-data-rest
Spring Data MongoDB Annotation @CreatedDate isn't working, when ID is assigned manually

I'm trying to use auditing to save dateCreated and dateUpdated in my objects, but since I set ID manually, there's …

java spring mongodb spring-data spring-data-mongodb
Spring Data MongoDB Date between two Dates

i'm using Spring Data for MongoDB and got the following classes class A { List<B> b; } class B { …

spring mongodb spring-data-mongodb
Spring Custom Query with pageable

I want to to implement pagination in spring application.I know using repository we can implement pagination but we can …

spring mongodb spring-data spring-boot spring-data-mongodb
How to use spring data mongo @CompoundIndex with sub collections?

Assume that I have such entities like the following: @Document(collection = "doc_a") public class A { @Field("id") private Integer …

mongodb spring-data spring-data-mongodb
How to find collections by its nested object's objectId in Spring Data using repository interface?

I have a collection in MongoDB that has items like this one: { "_id" : ObjectId("53e4d31d1f6b66e5163962…

java spring mongodb spring-data-mongodb
Spring Data Mongo - How to query by @DBRef field's id

I am new to Spring Data Mongo so I must be doing something wrong because I can't manage to execute …

java spring mongodb spring-data spring-data-mongodb