Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deserialization is not working for ENUM with Jackson2JsonRedisSerializer #2062

Closed
Deepu978 opened this issue May 10, 2021 · 2 comments
Closed
Labels
for: external-project For an external project and not something we can fix

Comments

@Deepu978
Copy link

Jackson2JsonRedisSerializer is not working to deserialize enum.

suppose i have an enum APPLE("test"). "APPLE" is stored in redis database as a String so when retrieving it just returns string instead of ENUM

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label May 10, 2021
@mp911de mp911de added for: external-project For an external project and not something we can fix and removed status: waiting-for-triage An issue we've not yet triaged labels May 11, 2021
@mp911de
Copy link
Member

mp911de commented May 11, 2021

I'm not sure there's something we can do from our side as Jackson2JsonRedisSerializer calls readValue for the given Java type. Please refer to Jackson docs on how to properly configure your data model.

@mp911de mp911de closed this as completed May 11, 2021
@lpint55
Copy link

lpint55 commented Feb 1, 2025

@Deepu978 I also encountered this issue. I want to ask if you've found a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: external-project For an external project and not something we can fix
Projects
None yet
Development

No branches or pull requests

4 participants