package example;

import java.util.Collections;
import java.util.Map;

import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Reference;
import org.springframework.data.keyvalue.annotation.KeySpace;
import org.springframework.data.redis.core.index.Indexed;

import lombok.Data;

@Data
@KeySpace("persons")
class Person {

	@Id String id;
	@Indexed String firstname;
	String lastname;

	Map<String, String> attributes = Collections.emptyMap();

	City city;

	@Reference Person mother;
}

@@ -201,36 +201,28 @@
 ata.
-keyvalue.annotation.KeySpace
+redis.core.RedisHash
 ;%0Aim
@@ -310,16 +310,17 @@
 ta%0A@
-KeySpace
+RedisHash
 (%22pe

Use the @RedisHash annotation instead of @KeySpace.