String sql = "select id,name from FORM_TEMPLATE";
List<Map<String, Object>> list = jdbcTemplate.queryForList(sql);
List<FormDTO> formDtos = new ArrayList<FormDTO>();
for (Map<String, Object> map : list) {
FormDTO formDto = new FormDTO();
formDtos.add(formDto);
formDto.setId(map.get("id").toString());
formDto.setName(map.get("name").toString());
}
return formDtos;
}