Quantcast
Browsing all 128 articles
Browse latest View live

Want to store a Key-ValObject data in MongoDB (Like Redis)?

Hi, I want to store/retrieve the Key-values in the MongoDB (Just like Redis). Can anyone help me with link. Example : Query searchUserQuery = new Query(Criteria.where("key")); MyPOJOClass savedObj =...

View Article


why MongoTemplate never throws Exception

spring data Operation mongodb is not ok forever. for example: network wrong mongodb is net start. why MongoTemplate never throws Exception.

View Article


Multiple Database(mysql,couchbase) calls in spring framework?

Does spring framework allows to call multiple database ... SCENARIO: I want to insert same data (user information) to both couchbase and mysql. How to make calls that it wont affect the performance....

View Article

Trying to do a TTL with MongoDB in spring, getting can't serialize class error

Hi, I am trying to do cache abstraction with custom annotations using MongoDB. I used Spring AOP @Pointcut("execution(@MyCacheable annotation... I am trying to set TTL while putting the values into...

View Article

Single Document vs Multiple Document

Hi, I am using COUCHBASE(NOSQL) for an application. It needs to find mutual friends between two users say A,B. Can someone suggest Whether to store all data in single JSON DOCUMENT OR multiple JSON...

View Article


BadInputException - for a neo4j Custom query

I am using Spring Data - neo4j 2.2, neo4j-cypher -1.9. The custom query is as shown below where latitude and longitude are properties of 'Address'. The relation from policy to address is as follows...

View Article

Spring mongo read conversion fails after bean modification

Sorry, but the new title should be : "Spring mongo read conversion fails for beans inside a map." I have a very strange situation where the read conversion fails after i persist the modified bean to...

View Article

[SOLVED] custom write converter on updating entity that contains a map

In short : When doing $set update on an entity that contains a map, the bean instances inside the map's value are not converted Code: // this doesnt trigger the write conversion on the...

View Article


DefaultRedisSet in Spring Redis

I am using Spring-data-redis 1.0.4.RELEASE version. I see in DefaultRedisSet class, write methods like add, remove also calls checkResult method and hence throws IllegalStateException when used within...

View Article


SDN spatial queries with paging

What would be the best approach to add paging to spatial queries in spring data neo4j? Should I use cypher? I'm using neo4j embedded. Thanks

View Article

findByXXX returns Map, not T

I'm using Spring Data Neo4J. I have extended the basic GraphRepository interface, adding a method, as follows: Code: /**  * Extension to the repository interface for standard Spring Data repo's that  *...

View Article

SDN SpringRestGraphDatabase shutdown

Hi, I have memory leak on Tomcat webapp undeploy, when there is SpringRestGraphDatabase used. 09:23:00.351 ERROR {ContainerBackgroundProcessor[StandardEngine[Catalina]]}...

View Article

Mongodb, Kerberos authentication

Hi, I'm wondering if there is a workaround for Kerberos authentication in Spring-mongodb? I know there is a long term fix (detailed below), but wonders if there is an alternative solution to this...

View Article


Can I use more than one java object type in redis templ with @Cacheable?

Is there any way I can use more than one redis template or change the value type to another object dynamically in the template for the CacheManager to use? I have multiple java objects that I want to...

View Article

mongoTemplate bean is causing an error

Hi guys. It seems i just can't make this mongoTemplate bean to work in my project :( Here is my xml for the mongo configuration: <?xml version="1.0" encoding="UTF-8"?> <beans...

View Article


mongoDB spring data minimum requirement

Hi, I'm having Spring-core 3.0.5 RELEASE and with that the mongoTemplate bean is not working and i get an exception on start up. When i changed the spring-core to be 3.0.7RELEASE it works anyone knows...

View Article

MongoDB update query for removing some elements from an array field

Hi, I have this MongoDB document: Code: {     "name" : "Joe",     "exams" : [         {           "foo" : "bar",           "exam" : 1         },         {           "foo" : "bar",           "exam" : 2...

View Article


SDN paging bug

Using annotated queries, page.getTotalPages() and page.getTotalElements() return wrong values in SDN 2.2, or am I missing something? Is there a workaround?

View Article

SDN 2.3.0.M1 aspectj problem

My applications tests and also cineast-aspectj tests fail using SDN 2.3.0.M1 (and also snapshot) while simple mapping cineast pass the tests The summary of error is Code: Tests in error:...

View Article

2 bugs for spring data mongodb

1. for CompoundIndex, if name is not set, it will raise an exception: com.mongodb.MongoException: no index name specified. Because in org.springframework.data.mongodb.core.index.MongoP...

View Article
Browsing all 128 articles
Browse latest View live