https://kotlinlang.org logo
Title
s

Saurav Kothari

09/04/2019, 8:02 AM
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

gildor

09/04/2019, 8:11 AM
What is Kotlin Date? Kotlin don’t have own Date class
s

Saurav Kothari

09/04/2019, 12:33 PM
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.