You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem here is that our RedisKeyValueAdapter is called with the keyspace only. The type hint from the repository is lost as the adapter interface doesn't accept the desired entity type.
Going further, the type hits are unknown because Dog and Cat are not registered in RedisMappingContext (RedisMappingContext.setInitialEntitySet(…)).
We now accept a type hint when calling getAllOf(…) to avoid materializing null instances when the actual typehint cannot resolve to a entity.
Closes#1995
based on: https://gitter.im/spring-projects/spring-data?at=604878ed22a5ce4a91464a41
Assuming I have the following structure:
What is persisted in redis:
keys list
inside of
Animal:dog-id
Everything looks ok.
There is no issue to persist the objects I can see them gracefully persisted into redis with the correct TypeAlias.
The problem is when I try to retrieve the data.
How to reproduce:
docker run --name some-redis -p 6379:6379 -d redis
)findAllShouldReturn2AnimalsWhenSavedACatAndADog
this will persist 2 animalsfindAllShouldAlsoReturnAnimalsWhenTheyExistAlreadyInDb
I stay available in case I could eventually help.
The text was updated successfully, but these errors were encountered: