Closed rheber closed 5 years ago
I've created an article in the project wiki to demonstrate the modelling of Hash/Range partition keys using Spring-Data-style composite primary keys in Kotlin:
Composite Primary Keys Kotlin Example
Feel free to close the ticket if this solves your issue.
Thanks @alex-arana. It turned out I just had a typo.
Expected Behavior
I'm working on a Kotlin program and a table I'm writing a crud repository for uses both a hash and range key. After consulting this page:
https://github.com/derjust/spring-data-dynamodb/wiki/Use-Hash-Range-keys
I've written what I believe to be the Kotlin equivalent of the necessary code. As such I would expect the code to compile with no errors.
Actual Behavior
Attempting to save an entry to the table produces this exception:
Steps to Reproduce the Problem
Here are the relevant sections of the code:
The exception occurs when trying to instantiate a LocalDatabase bean.
Specifications