Skip to content

DATAREDIS-503 - Add HashMapper implementation based on MappingRedisConverter. #194

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

Closed
wants to merge 3 commits into from

Conversation

christophstrobl
Copy link
Member

We now support mapping of simple and complex types to Redis HASH structures applying the same structure as the Repository support. This allows Object to hash mapping and its direct usage via RedisTemplate without the need of explicitly having to use the repository abstraction.

…nverter.

We now support mapping of simple and complex types to Redis HASH structures applying the same structure as the Repository support. This allows Object to hash Mapping and its direct usage via RedisTemplate without the need of explicitly having to use the repository abstraction.
mp911de added a commit that referenced this pull request Apr 29, 2016
Rename ConvertingHashMapper to ObjectHashMapper. Use generic type parameter in ObjectHashMapper. Add JavaDoc documentation to HashMapper. Add hash mapping to reference documentation.

Original pull request: #194.
@christophstrobl
Copy link
Member Author

@mp911de I left the generic type out by intention as it suggests the mapper is only supposed to to be usable with one specific type which is not the case. The returned type is actually defined via _class in the Map itself. Unfortunately we cannot change the HashMapper interface without breaking to much.

@mp911de mp911de force-pushed the issue/DATAREDIS-503 branch from d1c7548 to 8ef926f Compare April 30, 2016 18:30
mp911de added a commit that referenced this pull request Apr 30, 2016
Rename ConvertingHashMapper to ObjectHashMapper. Use generic type parameter in ObjectHashMapper. Add JavaDoc documentation to HashMapper. Add hash mapping to reference documentation.

Original pull request: #194.
Rename ConvertingHashMapper to ObjectHashMapper. Add JavaDoc documentation to HashMapper. Add hash mapping to reference documentation.

Original pull request: #194.
@mp911de mp911de force-pushed the issue/DATAREDIS-503 branch from 8ef926f to 3efc8ec Compare April 30, 2016 18:33
@mp911de
Copy link
Member

mp911de commented Apr 30, 2016

Rolled back the generic type change. Thanks for checking.

mp911de pushed a commit that referenced this pull request May 2, 2016
…nverter.

We now support mapping of simple and complex types to Redis HASH structures applying the same structure as the Repository support. This allows Object to hash Mapping and its direct usage via RedisTemplate without the need of explicitly having to use the repository abstraction.

Original pull request: #194.
mp911de added a commit that referenced this pull request May 2, 2016
Rename ConvertingHashMapper to ObjectHashMapper. Add fromHash with type to avoid casting. Add JavaDoc documentation to HashMapper. Add hash mapping to reference documentation.

Original pull request: #194.
@mp911de
Copy link
Member

mp911de commented May 2, 2016

That's merged with c1476b7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants