Join Slack
Powered by
Another little thing... can I use an `Instant` for...
# komapper
d
dave08
04/09/2024, 12:51 PM
Another little thing... can I use an
Instant
for date in postgres, or do I have to use LocalDate?
t
Toshihiro Nakamura
04/09/2024, 1:09 PM
It depends on the JDBC/R2DBC Driver you are using. Personally, I recommend mapping the date type to the
LocalDate
type.
d
dave08
04/09/2024, 1:11 PM
But there is always the AlternateType feature, right? Is there maybe something for Instant?
t
Toshihiro Nakamura
04/09/2024, 1:17 PM
Of course, you can use the AlternateType if you create your custom data type. (There is no built-in AlternateType for Instant)
👍🏼 1
3
Views
Open in Slack
Previous
Next