what's the difference between the data class code ...
# getting-started
b
what's the difference between the data class code and the java code presented?
s
the issue is probably that Kotlin wraps your properties automatically with getter and setter. So It’s not obvious if your annotation is on the field or the getter/setter. more here: https://stackoverflow.com/questions/42194682/how-to-get-annotations-of-a-kotlin-property-from-java#42198773