RowMapper is a Spring JDBC interface that converts one ResultSet row into an application object. JdbcTemplate.query() uses it while reading database results. section 3.1.2
Mapping ingredients
An ingredient repository queries id, name, and type columns, then maps each row to an Ingredient. The mapper reads strings from ResultSet and converts type with Ingredient.Type.valueOf().
