13 questions
Score of 0
0 answers
66 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....
Score of 0
0 answers
87 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 ...
Score of 0
0 answers
40 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 ...
Score of 0
1 answer
170 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?...
Score of 1
1 answer
460 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
@...
Score of 0
1 answer
2762 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 ...
Score of 4
0 answers
1899 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 ...
Score of 7
1 answer
2582 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....
Score of 0
1 answer
1991 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 ...
Score of 0
3 answers
953 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-...
Score of 8
2 answers
14815 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 ...
Score of 2
0 answers
487 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:
...
Score of 0
1 answer
1562 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 ...