Tagged Questions
0
votes
1answer
141 views
Save an object with image ( save both object data and image too) inside mongoDB using Java
I want to know specifically about saving an object with an image inside it. What I want to do is saving an entire object with image inside it, Image must be saved. I tried this but it saves only File ...
1
vote
0answers
45 views
Intercepting MongoDB calls using AspectJ in a Spring project
I am using Spring and the MongoDB java driver and I am trying to intercept all calls on the mongo DBCursor object to view queries before they get executed.
I've been trying to do this using the ...
2
votes
1answer
2k views
Spring Mongo criteria querying twice the same field
I am trying to query mongodb using spring. We have a collection which holds a tree and a include a list of items as a tree path (so we can easily traverse the tree). We have a query which needs to ...
2
votes
2answers
2k views
Spring Data MongoDB Date Between
I use spring data mongodb.
I want the records between two dates.
MongoDB Query:
db.posts.find({startDate: {$gte: start, $lt: end}}); // works
//Not works
Query query = new Query();
...
0
votes
0answers
129 views
Issue upgrading to spring 3.1.1 from 3.1.0
Assumed this is a trivial upgrade and I just switched the version number in pom.xml. but it turned way more than that. in 3.1.0 everything worked fine, when switched to 3.1.1, the mongoTemplate bean ...
2
votes
0answers
321 views
How to reference GridFSFile with @DbRef annotation (spring data mongodb)
i have a spring @Document object Profile
i would like to reference GridFSFile like it :
@DbRef
private GridFSFile file;
the file is writen into another collection type GridFS.
I always have a ...
2
votes
1answer
685 views
Spring MongoDB Custom Converter not used when doing $set updates?
Short summaries before the simple examples :
Inserting new documents is OK, in the meaning that it uses my custom converter
Updating an existing document is not OK, in the meaning that it doesnt use ...
0
votes
1answer
557 views
Endless replicaset connection error with spring data support and mongodb
I'm working in a apps where I'm using mongodb with replicaset.
In my replicaset I've 2 db servers and 1 arbiter. I'm creating my mongo object as follows
List<ServerAddress> servers = new ...