1

I've been told that as of JDBC 4.2 we can directly pass java.time objects to the database. But what about the Three Ten Backport classes? Can you directly pass Three Ten Backport classes to JDBC as well?

For example, let's say you pass an org.threeten.bp.LocalDateTime as an argument in a PreparedStatement. Would JDBC be able to handle this, the same way it accepts java.util.Date and java.sql.Date as arguments?

ktm5124
  • 11,861
  • 21
  • 74
  • 119

0 Answers0