I just posted this question on SO - <https://stack...
# announcements
s
I just posted this question on SO - https://stackoverflow.com/questions/57783848/kotlinmapper-to-map-sql-date-to-kotlin-date I am trying to use
KotlinMapper
to cast an SQL
Date
column to Kotlin
Date
. Would appreciate any help I can get!
g
What is Kotlin Date? Kotlin don’t have own Date class
s
Ahh. My bad. We have common dependencies preconfigured. It is acutally the Java Util Date class
As a generic question. If I had to use RowMapper to map a value stored as one type in the database to another type in the data class. One way would to be create in interim structure to read from the db and then cast it to the required structure I am looking to avoid doing that
I wrote a custom mapper to achieve this. But would still appreciate if there was a solution that would work without writing the whole mapper for one column.