but it's recorded as an Int (unix time stamp), can komapper handle that? Maybe kotlinx.datetime's Instant?
t
Toshihiro Nakamura
12/06/2022, 2:47 PM
Komapper cannot handle an Int as a
@KomapperUpdatedAt
clumn.
@KomapperUpdatedAt
is supported for the following types:
- java.time.Instant
- java.time.LocalDateTime
- java.time.OffsetDateTime
- kotlinx.datetime.Instant
- kotlinx.datetime.LocalDateTime
d
dave08
12/06/2022, 2:48 PM
Any way to get it to work with some kind of adapter?
t
Toshihiro Nakamura
12/06/2022, 2:55 PM
Currently, no.
d
dave08
12/06/2022, 2:58 PM
I would have expected that a
Copy code
DataTypeConverter<Instant, Int>
would support this... since in the end I'm mapping to an Instant in the data class...?
t
Toshihiro Nakamura
12/06/2022, 3:17 PM
Komapper processes
@KomapperUpdatedAt
and generates timestamp assignment code at compile-time for efficiency, so Komapper cannot use