13 questions
0 votes
0 answers
48 views
Spring repository instantiation in an OSGI bundle?
I am trying to convert a spring-based code to OSGI bundle. My activator class looks like this: package io.github.magwas.inez.osgi; import java.util.Dictionary; import java.util.Hashtable; import org....
0 votes
0 answers
79 views
How to configure spring-data-keyvalue to use Redis for persistence?
I have an application using spring-data-keyvalue. As I understand by default it uses HashMap without persistence. The documentation says I could use redis for that, with jedis (among others). I want ...
0 votes
0 answers
32 views
spring data keyvalue map detect duplicate keys
can spring data keyvalue detect duplicate keys ? batch result : readCount=116361, filterCount=23687, writeCount=92674 readSkipCount=0, writeSkipCount=0, processSkipCount=0, commitCount=4655 i ...
0 votes
1 answer
154 views
Why is @Enitity required for @KeySpace enitity for spring-data-keyvalue
Following https://www.baeldung.com/spring-data-key-value with Spring 3.1 and Java 17 I get and error where the Repo is not created unless I add @Enitity. Why? Is the blog wrong? Did I find a defect?...
1 vote
1 answer
447 views
Spring Data key-value custom queries does not work
There is an in-memory repository class: @Repository interface InMemoryBookRepository extends CrudRepository<Book, String> { int countByAuthor(String author); } The book model class: @Value @...
0 votes
1 answer
3k views
How can i setup Spring Boot with two datasources (MapRepository and H2 JPARepository)?
I'm trying to set up a spring boot project with two datasources. First datasource would be a H2 Database and second a MapRepository. Both repositories would share the same entity. I could manage to ...
4 votes
0 answers
2k views
Spring Data Redis with JSON converters gives "Path to property must not be null or empty."
I am trying to use a CrudRepository in association with spring-data-redis and lettuce. Following all the advice I can find I have configured my spring-boot 2.1.8 application with @ReadingConverters ...
7 votes
1 answer
3k views
Is it possible to use RedisRepositories and KeyValueRepositories?
I'm trying to use @EnableRedisRepositories and @EnableMapRepositories in a project and I'm getting the following error message: Related cause: org.springframework.beans.factory....
0 votes
1 answer
2k views
Spring Data Hazelcast Repository not working
I try to connect my Springboot(v1.4.2) App with a Hazelcast Cluster to find stored data. For that I'm using a hazelcast-client instance and I created a HazelcastRepository to search my data. The ...
0 votes
3 answers
948 views
Spring Data Key Value Implementation for Oracle KV
I would like to use Oracle NoSQL database together with Spring data. The aim is to access the data over spring data repositories and even use spring data rest on top of it. So I think the spring-data-...
8 votes
2 answers
15k views
Spring Data Rest Repository with abstract class / inheritance
I can't get Spring Data Rest with class inheritance working. I'd like to have a single JSON Endpoint which handles all my concrete classes. Repo: public interface AbstractFooRepo extends ...
2 votes
0 answers
483 views
Spring Data Key Value Derived Delete Support
Does Spring Data Key Value support derived delete query methods? It doesn't work for me. I extended Repository, declared a few CrudRepository methods, and added these derived query methods to it: ...
0 votes
1 answer
2k views
How to bootstrap Spring Data KeyValue?
Spring Data KeyValue looks great for quickly knocking up a mock microservice. How can I bootstrap it with data? I tried adding stuff to the KeyValueAdapter, but by specifying the bean myself, I've ...