title: batch update using jdbcTemplate in spring
body: <p>i have seen the code for batch update like the below one using ArrayList : </p>
  
  <pre><code>@Override
  public void saveBatch(final List&lt;Employee&gt; employeeList) {
      final int batchSize = 500;
  
      for (int j = 0; j &lt; employeeList.size(); j += batchSize) {
  
          final List&lt;Employee&gt; batchList = employeeList.subList(j, j + batchSize &gt; employeeList.size() ? employeeList.size() : j + batchSize);
  
          getJdbcTemplate().batchUpdate(QUERY_SAVE,
              new BatchPreparedStatementSetter() {
                  @Override
                  public void setValues(PreparedStatement ps, int i)
                          throws SQLException {
                      Employee employee = batchList.get(i);
                      ps.setString(1, employee.getFirstname());
                      ps.setString(2, employee.getLastname());
                      ps.setString(3, employee.getEmployeeIdOnSourceSystem());
                  }
  
                  @Override
                  public int getBatchSize() {
                      return batchList.size();
                  }
              });
  
      }
  }
  </code></pre>
  
  <p>but if I use Hashmap like the below : <code>HashMap&lt;String, VerifyPaymentRO&gt; verifyPaymentInfoMap</code></p>
  
  <p><code>VerifyPaymentRO</code> is java bean</p>
  
  <p>how do I use it for updating the record ?</p>