why when using jdbctemplate.query, I get the data in the form @ b2a1bdf
RowMapper seems to be used and with other entities there are no problems.

List<Divisions> divisionses = jdbcTemplate.query(sql, (rs, rowNum) -> { Divisions divisions = new Divisions(); divisions.setName(rs.getString("name")); divisions.setPf(rs.getString("pf")); return divisions; }); return divisionses; 
  • What kind of look? Where is he like that? In ResultSet e? - iksuy
  • 2
    From the description it is not at all clear what the problem is - etki
  • look, I get this sheet in the controller, and further, this sheet, passed to the view, uses Spring 4 and thymeleaf. In the view, at output, I see this, because it turns out that when sampling, the rowmapper does not work? - Konstantin
  • Hardly. Most likely, the controller does not know how to transfer the List correctly. What prevents the debugger to get into RowMapper and see if it pulls the field correctly? - iksuy
  • It turns out that when outputting to a view you display a string representation of the List . Show the code as you add the data from the List + to the view; override in your Divisions class the toString() method - Chubatiy

0