Class ObjectHashMapper

java.lang.Object
org.springframework.data.redis.hash.ObjectHashMapper
All Implemented Interfaces:
HashMapper<Object,byte[],byte[]>

public class ObjectHashMapper extends Object implements HashMapper<Object,byte[],byte[]>
HashMapper based on MappingRedisConverter. Supports nested properties and simple types like String.
 
 class Person {

   String firstname;
   String lastname;

   List<String> nicknames;
   List<Person> coworkers;

   Address address;
 }
 
 
The above is represented as:
 
 _class=org.example.Person
 firstname=rand
 lastname=al'thor
 coworkers.[0].firstname=mat
 coworkers.[0].nicknames.[0]=prince of the ravens
 coworkers.[1].firstname=perrin
 coworkers.[1].address.city=two rivers
 
 
Since:
1.8
Author:
Christoph Strobl, Mark Paluch