Tagged Questions
0
votes
0answers
101 views
how to update nested objects in array that match the condition in spring data - mongodb?
I have a document in mongodb that has been created from this java model:
class Comment
{
String pollID;
List<CommentDetail> commentDetailList;
}
class CommentDetailList
{
String ...
1
vote
1answer
61 views
Distinct() command used with skip() and limit()
I have those items in my MongoDB collection:
{x: 1, y: 60, z:100}
{x: 1, y: 60, z:100}
{x: 1, y: 60, z:100}
{x: 2, y: 60, z:100}
{x: 2, y: 60, z:100}
{x: 3, y: 60, z:100}
{x: 4, y: 60, z:100}
{x: 4, ...
0
votes
1answer
78 views
Mongodb going to sleep and retry. total sleep time after = 38ms this time:100ms
I can see the following in my tomcat logs but do not understand why and how to solve:
Mar 19, 2013 3:50:01 PM com.mongodb.DBPort _open SEVERE: going to
sleep and retry. total sleep time after = ...
0
votes
1answer
155 views
How to retrieve all matching elements present inside array in Mongo DB?
I have document shown below:
{
name: "testing",
place:"London",
documents: [
{
x:1,
y:2,
...
0
votes
1answer
93 views
How to retrieve element present inside array in Mongo DB?
I have structure shown below:
{
field1: "somevalue",
name:"xtz",
nested_documents: [
{
x:1,
y:2,
...
0
votes
2answers
649 views
Sort documents in collections while fetching
I have a collection called at MongoDB called resource.
It has the following documents:
{ "_id" : "Abb.e", "_class" : "Resource", "resourceEmail" : "[email protected]" }
{ "_id" : "Dasd.tt", "_class" : ...
0
votes
0answers
344 views
Persisting objects containing primitive arrays with spring-data-mongodb
I'm using spring-data-mongodb version 1.1.1.RELEASE. I am able to persist an object if all the member variables are primitive types, even if the names of the @PersistenceConstructor arguments don't ...
1
vote
1answer
444 views
Persisting Objects containing Objects with spring-data-mongodb
Below is a follow-up question to Question 13832188:
I'm using spring-data-mongodb version 1.1.1.RELEASE. I am able to persist an object if all the member variables are primitive types, even if the ...
2
votes
2answers
471 views
PersistenceConstructor argument variable name doesn't match instance variable name
I'm trying to persist the following object with spring-data-mongodb version 1.1.1.RELEASE:
@Document
public static class TestObject {
private final int m_property;
@PersistenceConstructor
...
1
vote
1answer
289 views
Executing MongoDB Stored JavaScript/Procedures from Spring Java
I have few stored Javascripts in mongodb. I am using spring springframework.data.mongodb to access mongodb. How can i execute stored JavaScripts/procedures from this ?
1
vote
0answers
83 views
Use Spring Data mongodb to store XMLBeans as BSON objects
I am looking into using Spring Data mongodb and so far I like what I see. However, when I try to store more complicated objects, for example one created using APache XMLBeans, I get a ...