or just the ones that will be different than the v...
# android
l
or just the ones that will be different than the variable name?
l
that's a very good question. for some reason whenever I see sample code for kotlin, the column info annotation is always added... maybe it has something to do with how it compiles to java?
c
I don't think its specific to Kotlin. I use
@ColumnInfo
if I want to set a different name for that variable from that provided as the parameter name
n
If you use proguard, it will obfuscate your variable names. I made that mistake in the past, not explicitly assigning names for json serialization, never again.
👍 1
r
Room processing is different: you are not forced to use
@ColumnInfo
in order to use proguard and obfuscate your entities; there is no reflexion mechanism.
👍 1