Hello again Oliver.
Okay, i am trying to do this right now.
Could you help me on how to construct a MappingMongoConverter instance ?
I still have several conversion issues, if you guide me on how...
Type: Posts; User: albert_kam; Keyword(s):
Hello again Oliver.
Okay, i am trying to do this right now.
Could you help me on how to construct a MappingMongoConverter instance ?
I still have several conversion issues, if you guide me on how...
Thanks for the reply.
Any pointers how should i get started ?
I am asking this because i am used to do simple tests with a running mongo instance, a custom spring xml file,
tests like the example...
Hello, it's been quite a while. Is there any followups on this ?
Dear Oliver,
Here is a working single-java-file example that demonstrates the problem :
package kam.albert.lab.convert;
import java.util.ArrayList;
import java.util.List;
Using spring mongo 1.1.0 release version, and mongo-java-driver 2.9.1 here.
So, i have an arraylist that gets mapped to mongo without using any converters using the default mapper.
If the list...
Using spring mongo 1.1.0 release version, and mongo-java-driver 2.9.1 here.
So, in short, i have an custom class IdKey that should convert to ObjectId, having registered the converter reader and...
spring-data-mongodb : 1.0.4.RELEASE
I have this scenario with :
1) insert a soup record + it's cinnamon spice
2) find & modify the soup's to use a new spice instead : pepper spice
3) load the...
This works :
List<Criteria> timepointCriterias = new ArrayList<>();
timepointCriterias.add(Criteria.where("timepoint").gt(since));
timepointCriterias.add(Criteria.where("timepoint").lte(until));...
Wooops, i found the culprit, and it was not about non-zero-constructor issues at all.
The cause was one property of my entity (which is just one of my own made classes) has the constructor issue,...
I am currently doing inheritance in my mongo entity. Saving is fine, but loading it back gives me the exception of :
Exception in thread "main" java.lang.NullPointerException
at...
After looking at this solution : http://forum.springsource.org/showthread.php?120050-MongoDb-multiple-pushAll
I tried making an update subclass :
import...
When i did a push, it works fine :
update = update.push("persons", new Person("albert"));
But when i did this :
update = update.pushAll("persons", new Object[] {new Person("albert"),...
I have countered many exceptions like this one below.
As i understand it, it has the problem with the constructors when trying to create an object instance out mongo document.
Sometimes i can...
Hello again ..
This was my original issue on https://jira.springsource.org/browse/DATAMONGO-407
My bad on issueing this matter before posting it here.
Will be very excited to see this feature...
I have a simple case, on making a post, and then adding a comment, and then inserting them into my mongo collection :
// create a post and add a comment
String postId = "post1";
MyPost...
Hi again !
I think that's good news, meaning the spring and mongodb rocks and lightning fast, haha.
:p
Perhaps the issue is related with this :...
This is my configuration :
<org.springframework.version>3.1.0.RELEASE</org.springframework.version>
<spring.data.mongo.version>1.0.0.RC1</spring.data.mongo.version>
Is it possible to...
I think it's detailed in here.
Example usage from my mongoTemplate definition :
<property name="WriteResultChecking">
<util:constant
...
Hi, thanks for the reply. Does this mean i must use http basic or digest auth, or perhaps there are other approaches? My clients would be mostly web browsers and rest clients.
Actually i like the...
HMAC seems to be the ideal security for a stateless webapp, storing nothing in server sessions.
But is it possible to integrate HMAC auth with Spring Security auth ?
I am currently using Spring...
I was hoping that changing into "stateless" for create-session attribute would be the end of it to achieve stateless spring security in my webapp, but it is not so.
With that change, the spring...
issue submitted :
https://jira.springsource.org/browse/DATAMONGO-374
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...
Hello,
Im using maven for this, and perhaps this mvn dependency:tree output could help you to determine missing jars :
[INFO] +-...
I feel stupid now. Using new Update() works just fine without having to do static Update.update(key, value)
Thank you!