code: @SuppressWarnings("deprecation")
      public static java.sql.Date toSqlDate(LocalDate date) {
          return new java.sql.Date(date.getYear() - 1900, date.getMonthValue() -1, date.getDayOfMonth());
      }
docs: Converts a {@code LocalDate} to a {@code java.sql.Date}.
  
  @param date  the local date, not null
  @return the SQL date, not null