I\'m trying to introduce Kotlin into my current project. I\'ve decided to begin with entities, which seem to map perfectly to data classes. For example I have a data class:<
If this is your whole data class then you're not overriding getId(). I see that you have a property called id and Kotlin should generate a getter for that but that won't be marked with the override keyword which you need to indicate that you're overriding an abstract function.
-- EDIT -- Alexander beat me to it! His answer is better anyway! ;)