Did you forget to provide one using @id?

when you use Redis as a Jpa Repository, You should import org.springframework.data.annotation.Id not javax.persistence.Id.

1
2
3
4
5
6
7
8
9
10
11
import org.springframework.data.annotation.Id
import org.springframework.data.redis.core.RedisHash


@RedisHash
class Chord(
@Id
val key: String,

val harmony: String
)
Share