Another little thing... can I use an `Instant` for...
# komapper
d
Another little thing... can I use an
Instant
for date in postgres, or do I have to use LocalDate?
t
It depends on the JDBC/R2DBC Driver you are using. Personally, I recommend mapping the date type to the
LocalDate
type.
d
But there is always the AlternateType feature, right? Is there maybe something for Instant?
t
Of course, you can use the AlternateType if you create your custom data type. (There is no built-in AlternateType for Instant)
👍🏼 1